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)
def _getpybinargs(self, scriptname):
bindir = py._dir.dirpath('bin')
if not bindir.check():
script = py.path.local.sysfind(scriptname)
else:
script = bindir.join(scriptname)
assert script.check()
return py.std.sys.executable, script
script = py.path.local.sysfind(scriptname)
return script,
def runpython(self, script):
return self.run(py.std.sys.executable, script)