Parcourir la source

r.pack: fix windows bug

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58677 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa il y a 11 ans
Parent
commit
4796dce5f3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      scripts/r.pack/r.pack.py

+ 1 - 1
scripts/r.pack/r.pack.py

@@ -74,7 +74,7 @@ def main():
             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