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