[GRASS-SVN] r44110 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 30 13:11:22 EDT 2010


Author: martinl
Date: 2010-10-30 10:11:22 -0700 (Sat, 30 Oct 2010)
New Revision: 44110

Modified:
   grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
fix utils.split() for python < 2.6
(merge r44109 from devbr6)


Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py	2010-10-30 17:08:48 UTC (rev 44109)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py	2010-10-30 17:11:22 UTC (rev 44110)
@@ -36,8 +36,9 @@
     """!Platform spefic shlex.split"""
     if sys.version_info >= (2, 6):
         return shlex.split(s, posix = (sys.platform != "win32"))
+    elif sys.platform == "win32":
+        return shlex.split(s.replace('\\', r'\\'))
     else:
-        # TODO
         return shlex.split(s)
 
 def GetTempfile(pref=None):



More information about the grass-commit mailing list