Made the reliance on conf even less user-intensive.

This commit is contained in:
Jeremy Fincher 2003-06-16 07:43:18 +00:00
parent f8a54c4872
commit a44ecb4aa0

View File

@ -39,17 +39,19 @@ import cgitb
import traceback import traceback
import ansi import ansi
try:
import conf import conf
except ImportError:
class conf:
logDir = '.'
detailedTracebacks = True
import world import world
### ###
# CONFIGURATION # CONFIGURATION
### ###
## Uncomment this class to remove the tie to SupyBot's conf module.
## class conf:
## logDir = '.'
# Names of logfiles. # Names of logfiles.
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')