Multiprocessing freeze support must be before the parsing command line

code.
pull/11/head
grossmj 10 years ago
parent 4ae7875010
commit f9b0f11221

@ -79,6 +79,10 @@ def main():
Entry point for GNS3 server
"""
if sys.platform.startswith("win"):
# necessary on Windows to freeze the application
multiprocessing.freeze_support()
try:
tornado.options.parse_command_line()
except (tornado.options.Error, ValueError):
@ -90,10 +94,6 @@ def main():
print(__version__)
raise SystemExit
if sys.platform.startswith("win"):
# necessary on Windows to freeze the application
multiprocessing.freeze_support()
current_year = datetime.date.today().year
print("GNS3 server version {}".format(__version__))
print("Copyright (c) 2007-{} GNS3 Technologies Inc.".format(current_year))

Loading…
Cancel
Save