@@ -98,8 +98,6 @@ def main(self):
98
98
help = "Leave bitcoinds and test.* datadir on exit or error" )
99
99
parser .add_option ("--noshutdown" , dest = "noshutdown" , default = False , action = "store_true" ,
100
100
help = "Don't stop bitcoinds after the test execution" )
101
- parser .add_option ("--srcdir" , dest = "srcdir" , default = os .path .abspath (os .path .dirname (os .path .realpath (__file__ )) + "/../../../src" ),
102
- help = "Source directory containing bitcoind/bitcoin-cli (default: %default)" )
103
101
parser .add_option ("--cachedir" , dest = "cachedir" , default = os .path .abspath (os .path .dirname (os .path .realpath (__file__ )) + "/../../cache" ),
104
102
help = "Directory for caching pregenerated datadirs (default: %default)" )
105
103
parser .add_option ("--tmpdir" , dest = "tmpdir" , help = "Root directory for datadirs" )
@@ -123,10 +121,6 @@ def main(self):
123
121
124
122
PortSeed .n = self .options .port_seed
125
123
126
- os .environ ['PATH' ] = self .options .srcdir + os .pathsep + \
127
- self .options .srcdir + os .path .sep + "qt" + os .pathsep + \
128
- os .environ ['PATH' ]
129
-
130
124
check_json_precision ()
131
125
132
126
self .options .cachedir = os .path .abspath (self .options .cachedir )
@@ -136,6 +130,10 @@ def main(self):
136
130
self .options .bitcoind = os .getenv ("BITCOIND" , default = config ["environment" ]["BUILDDIR" ] + '/src/bitcoind' + config ["environment" ]["EXEEXT" ])
137
131
self .options .bitcoincli = os .getenv ("BITCOINCLI" , default = config ["environment" ]["BUILDDIR" ] + '/src/bitcoin-cli' + config ["environment" ]["EXEEXT" ])
138
132
133
+ os .environ ['PATH' ] = config ['environment' ]['BUILDDIR' ] + os .pathsep + \
134
+ config ['environment' ]['BUILDDIR' ] + os .path .sep + "qt" + os .pathsep + \
135
+ os .environ ['PATH' ]
136
+
139
137
# Set up temp directory and start logging
140
138
if self .options .tmpdir :
141
139
self .options .tmpdir = os .path .abspath (self .options .tmpdir )
0 commit comments