Made debug.py make conf.logDir if it doesn't exist.

This commit is contained in:
Jeremy Fincher 2003-09-23 13:01:08 +00:00
parent d57c173598
commit 14f008df26

View File

@ -55,6 +55,10 @@ import world
### ###
# Names of logfiles. # Names of logfiles.
if not os.path.exists(conf.logDir):
os.mkdir(conf.logDir)
errorfile = os.path.join(conf.logDir, 'error.log') errorfile = os.path.join(conf.logDir, 'error.log')
debugfile = os.path.join(conf.logDir, 'debug.log') debugfile = os.path.join(conf.logDir, 'debug.log')
tracefile = os.path.join(conf.logDir, 'trace.log') tracefile = os.path.join(conf.logDir, 'trace.log')