浏览代码

fix batch job execution (trac https://trac.osgeo.org/grass/ticket/1074)

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

+ 1 - 1
lib/init/grass.py

@@ -608,7 +608,7 @@ def check_batch_job():
 	else:
 	else:
 	    message(_("Executing '%s' ...") % batch_job)
 	    message(_("Executing '%s' ...") % batch_job)
 	    grass_gui = "text"
 	    grass_gui = "text"
-	    shell = batch_job
+	    os.system(batch_job)
 
 
 def start_gui():
 def start_gui():
     # Start the chosen GUI but ignore text
     # Start the chosen GUI but ignore text