mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Made the reliance on conf even less user-intensive.
This commit is contained in:
parent
f8a54c4872
commit
a44ecb4aa0
10
src/debug.py
10
src/debug.py
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user