mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Fix testnet mode, expanduser on paths.
This commit is contained in:
@@ -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