[Greater-commits] r432 - trunk/GREAT-ER-DB
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jul 13 11:14:28 CEST 2011
Author: bricks
Date: 2011-07-13 11:14:28 +0200 (Wed, 13 Jul 2011)
New Revision: 432
Modified:
trunk/GREAT-ER-DB/generatewrapper.py
Log:
Use path of file to create include path
sys.path[0] can be overriden by PYTHONPATH
Modified: trunk/GREAT-ER-DB/generatewrapper.py
===================================================================
--- trunk/GREAT-ER-DB/generatewrapper.py 2011-07-13 09:06:50 UTC (rev 431)
+++ trunk/GREAT-ER-DB/generatewrapper.py 2011-07-13 09:14:28 UTC (rev 432)
@@ -14,7 +14,8 @@
from optparse import OptionParser
-sys.path.append(os.path.join(sys.path[0], "generator"))
+cur_path = os.path.dirname(__file__)
+sys.path.append(os.path.join(cur_path, "generator"))
from GreaterAPIGenerator.main import generate_wrapper
More information about the Greater-commits
mailing list