diff options
author | makefu <github@syntax-fehler.de> | 2015-08-31 13:10:17 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-08-31 13:10:17 +0200 |
commit | f7607f1297b071f019c1522e778978546eb381a4 (patch) | |
tree | fd81cc4822202f84db437b883b882a90496b34d1 /Reaktor/reaktor/config.py | |
parent | e5c6eae9896aeda68204bb7010a6e4e26d7eaca1 (diff) |
Reaktor: update deps
Diffstat (limited to 'Reaktor/reaktor/config.py')
-rw-r--r-- | Reaktor/reaktor/config.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Reaktor/reaktor/config.py b/Reaktor/reaktor/config.py index 73daa81f..85824321 100644 --- a/Reaktor/reaktor/config.py +++ b/Reaktor/reaktor/config.py @@ -10,8 +10,15 @@ debug = True name = os.environ.get('IRC_NICKNAME','crabmanner') -#workdir = expanduser('~') + '/state' -workdir = './state' +#workdir = './state' +workdir = expanduser('~') + '/state' + +# TODO: YAY more functionality in config.py .. +# if this fails the bot will fail (which is ok) +if not os.path.isdir(workdir): os.makedirs(workdir) + + + irc_alarm_timeout = 300 irc_hammer_interval = 10 @@ -36,7 +43,7 @@ config_filename = abspath(__file__) mod_dir=dirname(abspath(reaktor.__file__)) # the commands dirname ( -dist_dir = abspath(join(mod_dir,"..")) +dist_dir = abspath(join(mod_dir)) # me is used, so name cannot kill our patterns below |