Fix calling start.py to reopen browser (#2029)

* Fix calling start.py to reopen browser

* Move below
This commit is contained in:
Ivanq 2019-05-24 17:36:29 +03:00 committed by ZeroNet
parent 891aac4713
commit 9119d72b9b
1 changed files with 2 additions and 2 deletions

View File

@ -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