Changeset 10041 in genesis for tools/gformat.py
- Timestamp:
- Mar 6, 2012, 2:12:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r9971 r10041 67 67 def get_proxylist(): 68 68 """Get all available proxies proxyX sorting based on X number""" 69 os.chdir(NODE_DIR) 70 proxylist = sorted(glob.glob("proxy*"), 69 proxylist = sorted([os.path.basename(x) for x in glob.glob("%s/proxy*" % NODE_DIR)], 71 70 key=lambda name: int(''.join([c for c in name if c in string.digits])), 72 71 cmp=lambda x,y: x - y) … … 82 81 def get_nodelist(): 83 82 """ Get all available nodes - sorted """ 84 os.chdir(NODE_DIR) 85 nodelist = sorted(glob.glob("CNode*")) 83 nodelist = sorted([os.path.basename(x) for x in glob.glob("%s/CNode*" % NODE_DIR)]) 86 84 return nodelist 87 85
Note:
See TracChangeset
for help on using the changeset viewer.