Make log dir before creating pid. Fixes #482

This commit is contained in:
Clinton Hall 2014-07-13 06:58:46 +09:30
commit 5773472eeb

View file

@ -201,6 +201,9 @@ def initialize(section=None):
if __INITIALIZED__:
return False
if not makeDir(LOG_DIR):
print("!!! No log folder, logging to screen only!")
MYAPP = RunningProcess()
while MYAPP.alreadyrunning():
print("!!! Waiting for existing session to end!")
@ -231,9 +234,6 @@ def initialize(section=None):
else:
sys.exit(1)
if not makeDir(LOG_DIR):
print("!!! No log folder, logging to screen only!")
# init logging
logger.ntm_log_instance.initLogging()