summaryrefslogtreecommitdiffstats
path: root/Reaktor/IRC/asybot.py
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-12-18 22:15:38 +0100
committertv <tv@nomic.retiolum>2013-12-18 22:15:38 +0100
commite152f84b84b348070ca31e34c65bc54f07af8b8b (patch)
treed1cdd710ccf798353bba60689bb5d140823524b8 /Reaktor/IRC/asybot.py
parentd62b233846053c67b4616d43ff834d99ce02cbb6 (diff)
Reaktor: caps show all commands w/capname prop
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)