[GRASS-SVN] r47019 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 6 08:21:41 EDT 2011
Author: martinl
Date: 2011-07-06 05:21:41 -0700 (Wed, 06 Jul 2011)
New Revision: 47019
Modified:
grass/trunk/lib/init/grass.py
Log:
grass.py: check if location path exists
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2011-07-06 12:09:04 UTC (rev 47018)
+++ grass/trunk/lib/init/grass.py 2011-07-06 12:21:41 UTC (rev 47019)
@@ -581,6 +581,9 @@
def check_lock():
global lockfile
+ if not os.path.exists(location):
+ fatal(_("Path '%s' doesn't exist") % location)
+
# Check for concurrent use
lockfile = os.path.join(location, ".gislock")
ret = call([gfile("etc", "lock"),
More information about the grass-commit
mailing list