internal: always use scripts found in the environment
--HG-- branch : trunk
This commit is contained in:
parent
2752168a58
commit
b62978a88f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue