فهرست منبع

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

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64841 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 10 سال پیش
والد
کامیت
f7c226a839
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      lib/init/grass.py

+ 2 - 0
lib/init/grass.py

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