mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Multiprocessing freeze support must be before the parsing command line
code.
This commit is contained in:
parent
4ae7875010
commit
f9b0f11221
@ -79,6 +79,10 @@ def main():
|
|||||||
Entry point for GNS3 server
|
Entry point for GNS3 server
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if sys.platform.startswith("win"):
|
||||||
|
# necessary on Windows to freeze the application
|
||||||
|
multiprocessing.freeze_support()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
tornado.options.parse_command_line()
|
tornado.options.parse_command_line()
|
||||||
except (tornado.options.Error, ValueError):
|
except (tornado.options.Error, ValueError):
|
||||||
@ -90,10 +94,6 @@ def main():
|
|||||||
print(__version__)
|
print(__version__)
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
if sys.platform.startswith("win"):
|
|
||||||
# necessary on Windows to freeze the application
|
|
||||||
multiprocessing.freeze_support()
|
|
||||||
|
|
||||||
current_year = datetime.date.today().year
|
current_year = datetime.date.today().year
|
||||||
print("GNS3 server version {}".format(__version__))
|
print("GNS3 server version {}".format(__version__))
|
||||||
print("Copyright (c) 2007-{} GNS3 Technologies Inc.".format(current_year))
|
print("Copyright (c) 2007-{} GNS3 Technologies Inc.".format(current_year))
|
||||||
|
Loading…
Reference in New Issue
Block a user