[GRASS-SVN] r69431 - grass/branches/releasebranch_7_0/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 10 13:08:22 PDT 2016


Author: martinl
Date: 2016-09-10 13:08:21 -0700 (Sat, 10 Sep 2016)
New Revision: 69431

Modified:
   grass/branches/releasebranch_7_0/gui/scripts/d.wms.py
Log:
d.wms cannot move temp file with os.rename (fix #3148)

Modified: grass/branches/releasebranch_7_0/gui/scripts/d.wms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/scripts/d.wms.py	2016-09-10 20:07:25 UTC (rev 69430)
+++ grass/branches/releasebranch_7_0/gui/scripts/d.wms.py	2016-09-10 20:08:21 UTC (rev 69431)
@@ -157,6 +157,7 @@
 
 import os
 import sys
+import shutil
 
 from grass.script import core as grass
 
@@ -202,7 +203,7 @@
         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
 



More information about the grass-commit mailing list