Przeglądaj źródła

Remove bogosity from https://trac.osgeo.org/grass/changeset/57910

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57911 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 11 lat temu
rodzic
commit
6531aea5bf
1 zmienionych plików z 0 dodań i 14 usunięć
  1. 0 14
      lib/python/script/core.py

+ 0 - 14
lib/python/script/core.py

@@ -327,13 +327,6 @@ def start_command(prog, flags="", overwrite=False, quiet=False,
             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 @@ def exec_command(prog, flags="", overwrite=False, quiet=False, verbose=False,
 
     """
     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