diff --git a/src/debug.py b/src/debug.py index 9a89051a2..881abc6cb 100644 --- a/src/debug.py +++ b/src/debug.py @@ -55,6 +55,10 @@ import world ### # Names of logfiles. + +if not os.path.exists(conf.logDir): + os.mkdir(conf.logDir) + errorfile = os.path.join(conf.logDir, 'error.log') debugfile = os.path.join(conf.logDir, 'debug.log') tracefile = os.path.join(conf.logDir, 'trace.log')