[GRASS-SVN] r51365 - grass-addons/grass7/raster/r.in.wms2

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 10 15:21:00 EDT 2012


Author: martinl
Date: 2012-04-10 12:21:00 -0700 (Tue, 10 Apr 2012)
New Revision: 51365

Modified:
   grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py
Log:
r.in.wms2: fix importing modules from etc dir


Modified: grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py
===================================================================
--- grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py	2012-04-10 19:16:14 UTC (rev 51364)
+++ grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py	2012-04-10 19:21:00 UTC (rev 51365)
@@ -135,7 +135,9 @@
 #% description: Do not use GDAL WMS driver
 #%end
 
+import os
 import sys
+sys.path.insert(1, os.path.join('..', 'etc', 'r.in.wms2'))
 
 import grass.script as grass
 



More information about the grass-commit mailing list