Changeset 524 for pkpgcounter/trunk/pkpgpdls
- Timestamp:
- 11/28/07 16:50:03 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/analyzer.py
r523 r524 56 56 self.workfile = None 57 57 self.mustclose = None 58 59 def findExecutable(self, command) : 60 """Finds an executable in the PATH and returns True if found else False.""" 61 for path in os.environ.get("PATH", "").split(":") : 62 fullname = os.path.abspath(os.path.join(os.path.expanduser(path), command)) 63 if os.path.isfile(fullname) and os.access(fullname, os.X_OK) : 64 return True 65 return False 58 66 59 67 def getJobSize(self) :