[GRASS-SVN] r69430 - grass/branches/releasebranch_7_2/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 10 13:07:25 PDT 2016


Author: martinl
Date: 2016-09-10 13:07:25 -0700 (Sat, 10 Sep 2016)
New Revision: 69430

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

Modified: grass/branches/releasebranch_7_2/gui/scripts/d.wms.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/scripts/d.wms.py	2016-09-10 20:03:49 UTC (rev 69429)
+++ grass/branches/releasebranch_7_2/gui/scripts/d.wms.py	2016-09-10 20:07:25 UTC (rev 69430)
@@ -157,6 +157,7 @@
 
 import os
 import sys
+import shutil
 
 from grass.script import core as grass
 
@@ -204,7 +205,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