Rename webserver.py to webserver_sub.py.
This commit is contained in:
parent
34f8e9ef18
commit
a8a2fd2e7d
@ -73,8 +73,8 @@ def main():
|
||||
cx.setup(
|
||||
executables=[cx.Executable('scripts/dev/run_frozen_tests.py',
|
||||
targetName='run-frozen-tests'),
|
||||
cx.Executable('tests/integration/webserver.py',
|
||||
targetName='webserver')],
|
||||
cx.Executable('tests/integration/webserver_sub.py',
|
||||
targetName='webserver_sub')],
|
||||
options={'build_exe': get_build_exe_options()},
|
||||
**setupcommon.setupdata
|
||||
)
|
||||
|
@ -127,11 +127,12 @@ class HTTPBin(QObject):
|
||||
"""Start the webserver."""
|
||||
if hasattr(sys, 'frozen'):
|
||||
executable = os.path.join(os.path.dirname(sys.executable),
|
||||
'webserver')
|
||||
'webserver_sub')
|
||||
args = []
|
||||
else:
|
||||
executable = sys.executable
|
||||
args = [os.path.join(os.path.dirname(__file__), 'webserver.py')]
|
||||
args = [os.path.join(os.path.dirname(__file__),
|
||||
'webserver_sub.py')]
|
||||
|
||||
self.proc.start(executable, args + [str(self.port)])
|
||||
ok = self.proc.waitForStarted()
|
||||
|
Loading…
Reference in New Issue
Block a user