Procházet zdrojové kódy

attempt to fix https://trac.osgeo.org/grass/ticket/1143
(merge https://trac.osgeo.org/grass/changeset/43388 from relbr64)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43390 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa před 14 roky
rodič
revize
50bf04e3a1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      gui/wxpython/gui_modules/globalvar.py

+ 2 - 2
gui/wxpython/gui_modules/globalvar.py

@@ -158,8 +158,8 @@ def GetGRASSCmds(bin = True, scripts = True, gui_scripts = True):
        
     if subprocess.mswindows:
         for idx in range(len(cmd)):
-            cmd[idx] = cmd[idx].replace(EXT_BIN, '')
-            cmd[idx] = cmd[idx].replace(EXT_SCT, '')
+            if cmd[idx][-4:] in (EXT_BIN, EXT_SCT):
+                cmd[idx] = cmd[idx][:-4]
     
     return cmd