[GRASS-SVN] r42825 - grass-addons/gui/wxpython/wx.path

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 18 00:39:15 EDT 2010


Author: rashadkm
Date: 2010-07-18 04:39:15 +0000 (Sun, 18 Jul 2010)
New Revision: 42825

Modified:
   grass-addons/gui/wxpython/wx.path/wx.path.py
Log:
added a warning message

Modified: grass-addons/gui/wxpython/wx.path/wx.path.py
===================================================================
--- grass-addons/gui/wxpython/wx.path/wx.path.py	2010-07-17 23:02:02 UTC (rev 42824)
+++ grass-addons/gui/wxpython/wx.path/wx.path.py	2010-07-18 04:39:15 UTC (rev 42825)
@@ -255,6 +255,8 @@
         #
         # Re-use dialogs
         #
+	wx.MessageBox("Currently Works for spearfish data. \nIf you need this to work with other grass data.\
+please let me know. I will modify the code and update svn")
 	self.mapname = 'roads@' + grass.gisenv()['MAPSET']
 	self.cmd= ['d.vect', str("map=" + self.mapname),'width=1']
 	self.Map.AddLayer(type='vector', name=self.mapname, command=self.cmd)
@@ -300,7 +302,7 @@
 
             
 	    command=["v.net.path", 'input=roads', 'output=path','file=tmp','--overwrite']
-    	    gcmd.CommandThread(command).run()
+    	    gcmd.CommandThread(command,stout=None,stderr=None).run()
 
 
             self.mapname = 'path@'+ grass.gisenv()['MAPSET']



More information about the grass-commit mailing list