Parcourir la source

d.wms cannot move temp file with os.rename (fix https://trac.osgeo.org/grass/ticket/3148)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@69431 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa il y a 8 ans
Parent
commit
e4990526f3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      gui/scripts/d.wms.py

+ 2 - 1
gui/scripts/d.wms.py

@@ -157,6 +157,7 @@
 
 import os
 import sys
+import shutil
 
 from grass.script import core as grass
 
@@ -202,7 +203,7 @@ def main():
         wms = WMSGdalDrv()
     
     temp_map = wms.GetMap(options, flags) 
-    os.rename(temp_map, os.environ["GRASS_RENDER_FILE"])
+    shutil.move(temp_map, os.environ["GRASS_RENDER_FILE"])
 
     return 0