mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Made the reliance on conf even less user-intensive.
This commit is contained in:
parent
f8a54c4872
commit
a44ecb4aa0
12
src/debug.py
12
src/debug.py
@ -39,17 +39,19 @@ import cgitb
|
||||
import traceback
|
||||
|
||||
import ansi
|
||||
import conf
|
||||
try:
|
||||
import conf
|
||||
except ImportError:
|
||||
class conf:
|
||||
logDir = '.'
|
||||
detailedTracebacks = True
|
||||
|
||||
import world
|
||||
|
||||
###
|
||||
# CONFIGURATION
|
||||
###
|
||||
|
||||
## Uncomment this class to remove the tie to SupyBot's conf module.
|
||||
## class conf:
|
||||
## logDir = '.'
|
||||
|
||||
# Names of logfiles.
|
||||
errorfile = os.path.join(conf.logDir, 'error.log')
|
||||
debugfile = os.path.join(conf.logDir, 'debug.log')
|
||||
|
Loading…
Reference in New Issue
Block a user