Merge pull request #6248 from sellout/reuse-python
Avoid inconsistent Python lookup
This commit is contained in:
commit
27ffefed12
|
@ -137,12 +137,8 @@ def ensure_no_dot_so_in_depends():
|
|||
return exit_code == 0
|
||||
|
||||
def util_test():
|
||||
python = []
|
||||
if os.path.isfile('/usr/local/bin/python3'):
|
||||
python = ['/usr/local/bin/python3']
|
||||
|
||||
return subprocess.call(
|
||||
python + [repofile('src/test/bitcoin-util-test.py')],
|
||||
[sys.executable, repofile('src/test/bitcoin-util-test.py')],
|
||||
cwd=repofile('src'),
|
||||
env={'PYTHONPATH': repofile('src/test'), 'srcdir': repofile('src')}
|
||||
) == 0
|
||||
|
|
Loading…
Reference in New Issue