From 14f008df26b2d7c34023d992f579bb3c7dd3832d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 23 Sep 2003 13:01:08 +0000 Subject: [PATCH] Made debug.py make conf.logDir if it doesn't exist. --- src/debug.py | 4 ++++ 1 file changed, 4 insertions(+) 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')