[GRASS-SVN] r67809 - grass-addons/grass7/raster/r.green/r.green.install
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 10 21:39:20 PST 2016
Author: zarch
Date: 2016-02-10 21:39:20 -0800 (Wed, 10 Feb 2016)
New Revision: 67809
Modified:
grass-addons/grass7/raster/r.green/r.green.install/r.green.install.py
Log:
r.green: before move the libhydro and libgreen directory check if destination already exists and in case remove it
Modified: grass-addons/grass7/raster/r.green/r.green.install/r.green.install.py
===================================================================
--- grass-addons/grass7/raster/r.green/r.green.install/r.green.install.py 2016-02-11 04:36:56 UTC (rev 67808)
+++ grass-addons/grass7/raster/r.green/r.green.install/r.green.install.py 2016-02-11 05:39:20 UTC (rev 67809)
@@ -260,9 +260,12 @@
if not os.path.exists(greendir):
os.makedirs(greendir)
- msg = 'Moving r.green library (%s) from: %s to: %s'
+ print('You should (manually or using "-m" flag) move the:')
+ msg = 'r.green library (%s) from: %s to: %s'
print(msg % (lib, wrongpath, greendir))
if move:
+ if os.path.exists(greendir):
+ shutil.rmtree(greendir)
shutil.move(wrongpath, greendir)
else:
if os.path.exists(greendir):
More information about the grass-commit
mailing list