[GRASS-SVN] r57911 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 2 01:43:59 PDT 2013
Author: glynn
Date: 2013-10-02 01:43:59 -0700 (Wed, 02 Oct 2013)
New Revision: 57911
Modified:
grass/trunk/lib/python/script/core.py
Log:
Remove bogosity from r57910
Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py 2013-10-02 02:55:55 UTC (rev 57910)
+++ grass/trunk/lib/python/script/core.py 2013-10-02 08:43:59 UTC (rev 57911)
@@ -327,13 +327,6 @@
options[opt] = val
args = make_command(prog, flags, overwrite, quiet, verbose, **options)
- # using Python executable to run the module if it is a script
- # expecting at least module name at first position
- # cannot use make_command for this now because it is used in GUI
- if sys.platform == "win32":
- args[0] = get_real_command(args[0])
- if args[0].endswith('.py'):
- args.insert(0, sys.executable)
if debug_level() > 0:
sys.stderr.write("D1/%d: %s.start_command(): %s\n" % (debug_level(),
@@ -483,13 +476,6 @@
"""
args = make_command(prog, flags, overwrite, quiet, verbose, **kwargs)
- # using Python executable to run the module if it is a script
- # expecting at least module name at first position
- # cannot use make_command for this now because it is used in GUI
- if sys.platform == "win32":
- args[0] = get_real_command(args[0])
- if args[0].endswith('.py'):
- args.insert(0, sys.executable)
if env == None:
env = os.environ
More information about the grass-commit
mailing list