From 9119d72b9bc9169f7eb99e8191268b6cb34df3b1 Mon Sep 17 00:00:00 2001 From: Ivanq Date: Fri, 24 May 2019 17:36:29 +0300 Subject: [PATCH] Fix calling start.py to reopen browser (#2029) * Fix calling start.py to reopen browser * Move below --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index b6d8c27d..53e43965 100644 --- a/src/main.py +++ b/src/main.py @@ -20,8 +20,6 @@ config.parse(silent=True) # Plugins need to access the configuration if not config.arguments: # Config parse failed, show the help screen and exit config.parse() -config.initLogging() - if not os.path.isdir(config.data_dir): os.mkdir(config.data_dir) try: @@ -54,6 +52,8 @@ if config.action == "main": print("Error starting browser: %s" % err) sys.exit() +config.initLogging() + # Debug dependent configuration from Debug import DebugHook