summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2012-10-19 14:03:06 +0200
committerFlorian Bruhin <git@the-compiler.org>2012-10-19 14:03:06 +0200
commit5ab07ec45ee089e920ebdedfdcf26e5ed1edf2c7 (patch)
tree91bdccc436252fe5c8a8c13583785242b775229d
parent1f12120a8a354091623b7f6a6d984b9638db5930 (diff)
downloadnpc-5ab07ec45ee089e920ebdedfdcf26e5ed1edf2c7.tar.gz
npc-5ab07ec45ee089e920ebdedfdcf26e5ed1edf2c7.zip
really fix path >_<
-rwxr-xr-xnpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc.py b/npc.py
index 1a2bb12..91274f6 100755
--- a/npc.py
+++ b/npc.py
@@ -34,7 +34,7 @@ from sqlalchemy.orm import sessionmaker
from sqlalchemy.exc import SQLAlchemyError
if sys.argv[0].startswith(os.sep):
- __PATH__ = sys.argv[0]
+ __PATH__ = os.path.dirname(sys.argv[0])
else:
__PATH__ = os.getcwd() + os.sep + os.path.dirname(sys.argv[0])