Fix testnet mode, expanduser on paths.

This commit is contained in:
tecnovert
2019-07-23 16:26:37 +02:00
parent 5bfcdd469b
commit e039d90bee
3 changed files with 18 additions and 9 deletions

View File

@@ -44,9 +44,9 @@ def signal_handler(sig, frame):
def startDaemon(node_dir, bin_dir, daemon_bin, opts=[]):
daemon_bin = os.path.join(bin_dir, daemon_bin)
daemon_bin = os.path.expanduser(os.path.join(bin_dir, daemon_bin))
args = [daemon_bin, '-datadir=' + node_dir] + opts
args = [daemon_bin, '-datadir=' + os.path.expanduser(node_dir)] + opts
logger.info('Starting node ' + daemon_bin + ' ' + '-datadir=' + node_dir)
return subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)