Skip to content

Commit

Permalink
qa: Run gen_rpcauth with sys.executable
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Aug 3, 2018
1 parent fada896 commit facb56f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/rpc_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from random import SystemRandom
import string
import configparser
import sys


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

0 comments on commit facb56f

Please sign in to comment.