summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-06 13:44:39 +0200
committertv <tv@xso>2011-09-06 13:44:39 +0200
commit517b059be3acef5fb921d4899c4bc192ffef1b7c (patch)
tree79d377c793b3172be7ddf88d5e0abec1199e1461
parentf4a473b67e1a1224d28c640461a0c9cdd33a8834 (diff)
//Reaktor/IRC: use //Reaktor/public_commands
-rw-r--r--.gitignore2
-rwxr-xr-xReaktor/IRC/bot2.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index f231cbb2..45c832ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,4 @@ a.out
/ovh/soapi/src
/ovh/soapi/SOAPpy
/Reaktor/IRC/irclib.py
-/Reaktor/IRC/public_commands/*
+/Reaktor/public_commands/*
diff --git a/Reaktor/IRC/bot2.py b/Reaktor/IRC/bot2.py
index 0583d329..7365686e 100755
--- a/Reaktor/IRC/bot2.py
+++ b/Reaktor/IRC/bot2.py
@@ -40,7 +40,8 @@ class IRCBot(SimpleIRCClient):
from os.path import realpath, dirname, join
from subprocess import Popen as popen, PIPE
- public_commands = join(realpath(dirname(__file__)), 'public_commands')
+ Reaktor_dir = dirname(realpath(dirname(__file__)))
+ public_commands = join(Reaktor_dir, 'public_commands')
command = join(public_commands, _command)
if is_executable(command):