[GRASS-SVN] r71137 - grass-addons/grass7/vector/v.class.mlR

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 25 01:11:50 PDT 2017


Author: mlennert
Date: 2017-05-25 01:11:50 -0700 (Thu, 25 May 2017)
New Revision: 71137

Modified:
   grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py
Log:
v.class.mlR: clean temp filenames for Windows usage

Modified: grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py
===================================================================
--- grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py	2017-05-25 07:32:30 UTC (rev 71136)
+++ grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py	2017-05-25 08:11:50 UTC (rev 71137)
@@ -344,6 +344,7 @@
 
     if allmap:
         feature_vars = gscript.tempfile()
+        feature_vars = feature_vars.replace("\\", "/"))
         gscript.run_command('v.db.select',
                             map_=allfeatures,
                             file_=feature_vars,
@@ -355,6 +356,7 @@
 
     if trainmap:
         training_vars = gscript.tempfile()
+        training_vars = training_vars.replace("\\", "/"))
         gscript.run_command('v.db.select',
                             map_=training,
                             file_=training_vars,



More information about the grass-commit mailing list