[GRASS-SVN] r44109 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 30 13:08:48 EDT 2010
Author: martinl
Date: 2010-10-30 10:08:48 -0700 (Sat, 30 Oct 2010)
New Revision: 44109
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
Log:
fix utils.split() for python < 2.6
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2010-10-30 16:36:39 UTC (rev 44108)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2010-10-30 17:08:48 UTC (rev 44109)
@@ -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