Skip to content

Commit facb56f

Browse files
author
MarcoFalke
committed
qa: Run gen_rpcauth with sys.executable
1 parent fada896 commit facb56f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/rpc_users.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from random import SystemRandom
1919
import string
2020
import configparser
21+
import sys
2122

2223

2324
class HTTPBasicsTest(BitcoinTestFramework):
@@ -36,7 +37,7 @@ def setup_chain(self):
3637
config = configparser.ConfigParser()
3738
config.read_file(open(self.options.configfile))
3839
gen_rpcauth = config['environment']['RPCAUTH']
39-
p = subprocess.Popen([gen_rpcauth, self.user], stdout=subprocess.PIPE, universal_newlines=True)
40+
p = subprocess.Popen([sys.executable, gen_rpcauth, self.user], stdout=subprocess.PIPE, universal_newlines=True)
4041
lines = p.stdout.read().splitlines()
4142
rpcauth3 = lines[1]
4243
self.password = lines[3]

0 commit comments

Comments
 (0)