Changeset 10364 in genesis for tools


Ignore:
Timestamp:
Apr 7, 2012, 9:55:14 AM (13 years ago)
Author:
rick
Message:

Add the named proxies in the list as well.

While here, make sure we can call standalone from any path location.

Related-To: beheer#174

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10319 r10364  
    106106  proxylist = sorted([os.path.basename(x) for x in glob.glob("%s/proxy*" % NODE_DIR)],
    107107                key=lambda name: int(''.join([c for c in name if c in string.digits])),
    108                 cmp=lambda x,y: x - y)
     108                cmp=lambda x,y: x - y) + sorted([os.path.basename(x) for x in glob.glob("%s/Proxy*" % NODE_DIR)])
    109109  return proxylist
    110110
     
    966966            return False
    967967
    968           self.cgi_info = (__file__, self.path)
     968          self.cgi_info = (os.path.basename(__file__), self.path)
    969969          self.path = ''
    970970          return True
Note: See TracChangeset for help on using the changeset viewer.