summaryrefslogtreecommitdiffstats
path: root/Reaktor/IRC/asybot.py
diff options
context:
space:
mode:
Diffstat (limited to 'Reaktor/IRC/asybot.py')
-rwxr-xr-xReaktor/IRC/asybot.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py
index 048b94ce..38f0df11 100755
--- a/Reaktor/IRC/asybot.py
+++ b/Reaktor/IRC/asybot.py
@@ -2,6 +2,7 @@
#
# //Reaktor/IRC/asybot.py
#
+import os
from translate_colors import translate_colors
def is_executable(x):
import os
@@ -18,8 +19,11 @@ from sys import exit
from re import split, search, match
from textwrap import TextWrapper
import logging,logging.handlers
+
+config_filename = 'config.py'
+
from getconf import make_getconf
-getconf = make_getconf('config.py')
+getconf = make_getconf(config_filename)
log = logging.getLogger('asybot')
hdlr = logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_DAEMON)
formatter = logging.Formatter( '%(filename)s: %(levelname)s: %(message)s')
@@ -142,6 +146,7 @@ class asybot(asychat):
env = {}
env['_from'] = prefix.split('!', 1)[0]
+ env['config_filename'] = os.path.abspath(config_filename)
start = time()
try:
p = popen(myargv, bufsize=1, stdout=PIPE, stderr=PIPE, env=env)