Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

paths: use bin_path as first search location

Changeset 0d7cdf594deb

Parent 87c57f0bb520

by Steve Borho

Changes to one file · Browse files at 0d7cdf594deb Showing diff from parent 87c57f0bb520 Diff from another changeset...

Change 1 of 2 Show Entire File thgutil/​paths.py Stacked
 
86
87
88
 
89
 
90
91
92
 
94
95
96
97
98
99
100
101
102
 
86
87
88
89
90
91
92
93
94
 
96
97
98
 
 
 
99
100
101
@@ -86,7 +86,9 @@
    def find_in_path(pgmname):   """ return first executable found in search path """ + global bin_path   ospath = os.environ['PATH'].split(os.pathsep) + ospath.insert(0, bin_path or get_prog_root())   for path in ospath:   ppath = os.path.join(path, pgmname)   if os.access(ppath, os.X_OK): @@ -94,9 +96,6 @@
  return None     def get_prog_root(): - global bin_path - if bin_path: - return bin_path   path = os.path.dirname(os.path.dirname(__file__))   return path