aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit5886952793f4ccef0151930fc0500af8c9b69fea (patch)
treed0db8a78b58df9a8a340f4cb950916624e43f64f /IRC/asybot.py
parent90815d6eb4f2d1c27e298543a976caf975af140f (diff)
Reaktor: caps show all commands w/capname prop
Diffstat (limited to 'IRC/asybot.py')
-rwxr-xr-xIRC/asybot.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/IRC/asybot.py b/IRC/asybot.py
index 048b94c..38f0df1 100755
--- a/IRC/asybot.py
+++ b/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)