[Pywps-commits] r828 - in trunk: . pywps

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 19 12:32:04 CEST 2009


Author: jachym
Date: 2009-05-19 12:32:03 +0200 (Tue, 19 May 2009)
New Revision: 828

Modified:
   trunk/pywps/Exceptions.py
   trunk/setup.py
Log:
modification for python 2.6 and ubuntu - hope, this works...

Modified: trunk/pywps/Exceptions.py
===================================================================
--- trunk/pywps/Exceptions.py	2009-05-19 09:01:07 UTC (rev 827)
+++ trunk/pywps/Exceptions.py	2009-05-19 10:32:03 UTC (rev 828)
@@ -72,6 +72,7 @@
 
 class NoApplicableCode(WPSException):
     def __init__(self,value=None):
+        WPSException.__init__(self,value)
         self.code = "NoApplicableCode"
         self.locator = None
         self.make_xml()

Modified: trunk/setup.py
===================================================================
--- trunk/setup.py	2009-05-19 09:01:07 UTC (rev 827)
+++ trunk/setup.py	2009-05-19 10:32:03 UTC (rev 828)
@@ -104,6 +104,11 @@
 
     baseDir =  os.path.join(sysconfig.get_python_lib(),
                             name,'Templates')
+
+    for i in range(len(sys.path)):
+        if os.path.split(sys.path[i])[1] == "dist-packages":
+            baseDir =  os.path.join(sys.path[i],
+                                name,'Templates')
     versionDirs = ['1_0_0']
 
     template_files = ['GetCapabilities', 'DescribeProcess','Execute']



More information about the Pywps-commits mailing list