浏览代码

grass.py: check if Platform.make exists otherwise return an error

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64838 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 10 年之前
父节点
当前提交
582d3bae1b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/init/grass.py

+ 2 - 0
lib/init/grass.py

@@ -1190,6 +1190,8 @@ def grep(string,list):
 
 def print_params():
     plat = gfile(gisbase, 'include', 'Make', 'Platform.make')
+    if os.path.exists(plat):
+        fatal(_("Please install GRASS development package"))
     fileplat = open(plat)
     linesplat = fileplat.readlines()
     fileplat.close()