internal: always use scripts found in the environment

--HG--
branch : trunk
This commit is contained in:
holger krekel 2009-12-31 16:15:11 +01:00
parent 2752168a58
commit b62978a88f
1 changed files with 2 additions and 7 deletions

View File

@ -307,13 +307,8 @@ class TmpTestdir:
return self.run(*fullargs) return self.run(*fullargs)
def _getpybinargs(self, scriptname): def _getpybinargs(self, scriptname):
bindir = py._dir.dirpath('bin') script = py.path.local.sysfind(scriptname)
if not bindir.check(): return script,
script = py.path.local.sysfind(scriptname)
else:
script = bindir.join(scriptname)
assert script.check()
return py.std.sys.executable, script
def runpython(self, script): def runpython(self, script):
return self.run(py.std.sys.executable, script) return self.run(py.std.sys.executable, script)