[GRASS-SVN] r58677 - grass/trunk/scripts/r.pack

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 11 10:52:51 PST 2014


Author: martinl
Date: 2014-01-11 10:52:51 -0800 (Sat, 11 Jan 2014)
New Revision: 58677

Modified:
   grass/trunk/scripts/r.pack/r.pack.py
Log:
r.pack: fix windows bug

Modified: grass/trunk/scripts/r.pack/r.pack.py
===================================================================
--- grass/trunk/scripts/r.pack/r.pack.py	2014-01-11 18:35:26 UTC (rev 58676)
+++ grass/trunk/scripts/r.pack/r.pack.py	2014-01-11 18:52:51 UTC (rev 58677)
@@ -74,7 +74,7 @@
             grass.fatal(_("option <output>: <%s> exists.") % outfile)
     
     grass.message(_("Packing <%s> to <%s>...") % (gfile['fullname'], outfile))
-    basedir = os.path.sep.join(gfile['file'].split(os.path.sep)[:-2])
+    basedir = os.path.sep.join(os.path.normpath(gfile['file']).split(os.path.sep)[:-2])
     olddir  = os.getcwd()
     
     # copy elements



More information about the grass-commit mailing list