summaryrefslogtreecommitdiffstats
path: root/punani
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-01-04 01:01:55 +0100
committerEUcancER <root@euer.krebsco.de>2012-01-04 01:01:55 +0100
commitecf910d71789d3c24dced047ff5326d12b810e45 (patch)
treedfea33366332accf927bc7879ccb563c61cea8e5 /punani
parent16ead19ffecbb27ae624db03b22a0ee77e1ca409 (diff)
//punani/index.py: path now relative to executable
Diffstat (limited to 'punani')
-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.