Skip to content

Commit 258d9d3

Browse files
committed
feature_fedpeg: Use os.join instead of hardcoded separator
1 parent 305de6d commit 258d9d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/functional/feature_fedpeg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
import time
4+
import os
45

56
from test_framework.authproxy import JSONRPCException
67
from test_framework.test_framework import BitcoinTestFramework
@@ -152,7 +153,7 @@ def setup_network(self, split=False):
152153
else:
153154
# Need to specify where to find parent cookie file
154155
datadir = get_datadir_path(self.options.tmpdir, n)
155-
extra_args.append('-mainchainrpccookiefile='+datadir+"/" + parent_chain + "/.cookie")
156+
extra_args.append('-mainchainrpccookiefile='+os.path.join(datadir, parent_chain, ".cookie"))
156157

157158
self.add_nodes(1, [extra_args], chain=["elementsregtest"])
158159
self.start_node(2+n)

0 commit comments

Comments
 (0)