[Greater-commits] r3747 - branches/3.0.0-all-models/greater-pre-processing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 29 10:07:58 CEST 2011
Author: aheinecke
Date: 2011-07-29 10:07:58 +0200 (Fri, 29 Jul 2011)
New Revision: 3747
Modified:
branches/3.0.0-all-models/greater-pre-processing/upload-catchment.py
Log:
Expand the search path for upload catchment in the same way it is done
for other GREATER-Components
Modified: branches/3.0.0-all-models/greater-pre-processing/upload-catchment.py
===================================================================
--- branches/3.0.0-all-models/greater-pre-processing/upload-catchment.py 2011-07-29 07:48:36 UTC (rev 3746)
+++ branches/3.0.0-all-models/greater-pre-processing/upload-catchment.py 2011-07-29 08:07:58 UTC (rev 3747)
@@ -21,6 +21,13 @@
import os.path
import re
+import sys, os
+_dir = os.path.join(sys.path[0], os.pardir)
+for reldir in ("Python", "GREAT-ER-DB", "Lib"):
+ fullname = os.path.join(_dir, reldir)
+ if os.path.isdir(fullname):
+ sys.path.append(fullname)
+
import wxPython.wx as wx
from wxPython.wizard import wxWizard, wxWizardPageSimple, \
wxWizardPageSimple_Chain, EVT_WIZARD_PAGE_CHANGING, \
More information about the Greater-commits
mailing list