summaryrefslogtreecommitdiffstats
path: root/punani/index.py
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2012-01-04 13:09:05 +0100
committermakefu <github@syntax-fehler.de>2012-01-04 13:09:05 +0100
commita7f3e59a37f6b59738fe33d7e3d0953f8461f361 (patch)
treed83b4f994bf7ba54ed03ad674b336fab42bc4481 /punani/index.py
parentd67c6825b2d5f7ab6a66858fbe93194650ef57b2 (diff)
parent91d6fc8971483bf8e1fed7d649f966d180e23956 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'punani/index.py')
-rwxr-xr-xpunani/index.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/punani/index.py b/punani/index.py
index ac19b2fb..ff483d37 100755
--- a/punani/index.py
+++ b/punani/index.py
@@ -3,6 +3,7 @@
import web
import json
import os
+import sys
from bot import *
urls = (
'/', 'Index',
@@ -12,7 +13,7 @@ urls = (
)
-PDB_FILE="db/punani"
+PDB_FILE=os.path.dirname(os.path.abspath(sys.argv[0])) + "/db/punani"
PORT="9111"
CHANNEL="#retiolum"
f = open(PDB_FILE)
@@ -70,7 +71,7 @@ class ArchFinder:
if __name__ == "__main__":
import sys
# Set IRC connection parameters.
- irc_servers = [('supernode', 6667)]
+ irc_servers = [('supernode.retiolum', 6667)]
irc_channels = [('#retiolum','')]
# Prepare and start IRC bot.