浏览代码

https://trac.osgeo.org/grass/ticket/1074 - patch by alf applied (modified)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42535 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父节点
当前提交
2d93023f00
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/init/grass.py

+ 3 - 3
lib/init/grass.py

@@ -613,10 +613,10 @@ def check_batch_job():
 	    # right file, but ...
 	    fatal(_("Change file permission to 'executable' for '%s'") % batch_job)
 	else:
-	    message(_("Executing '%s' ...") % batch_job)
+	    message(_("Executing '%s'...") % batch_job)
 	    grass_gui = "text"
-	    shell = batch_job
-
+	    Popen(batch_job, shell = True)
+    
 def start_gui():
     # Start the chosen GUI but ignore text
     if grass_debug: