[GRASS-SVN] r64841 - grass/branches/releasebranch_7_0/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 12 14:24:00 PDT 2015
Author: lucadelu
Date: 2015-03-12 14:24:00 -0700 (Thu, 12 Mar 2015)
New Revision: 64841
Modified:
grass/branches/releasebranch_7_0/lib/init/grass.py
Log:
grass.py: backported check if Platform.make exists otherwise return an error
Modified: grass/branches/releasebranch_7_0/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/init/grass.py 2015-03-12 21:17:12 UTC (rev 64840)
+++ grass/branches/releasebranch_7_0/lib/init/grass.py 2015-03-12 21:24:00 UTC (rev 64841)
@@ -1196,6 +1196,8 @@
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()
More information about the grass-commit
mailing list