From f9b0f1122151aaec9fd4c470edb0814f2da58c94 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 1 May 2014 19:59:06 -0600 Subject: [PATCH] Multiprocessing freeze support must be before the parsing command line code. --- gns3server/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gns3server/main.py b/gns3server/main.py index cabd9981..a75c2556 100644 --- a/gns3server/main.py +++ b/gns3server/main.py @@ -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))