From 5886952793f4ccef0151930fc0500af8c9b69fea Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Dec 2013 22:15:38 +0100 Subject: Reaktor: caps show all commands w/capname prop --- IRC/asybot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'IRC/asybot.py') 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) -- cgit v1.2.3