Fix testnet mode, expanduser on paths.
This commit is contained in:
3 files changed
+18
-9
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user