[GRASS-SVN] r51389 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 12 08:48:20 EDT 2012
Author: martinl
Date: 2012-04-12 05:48:19 -0700 (Thu, 12 Apr 2012)
New Revision: 51389
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: untabify
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2012-04-12 12:44:15 UTC (rev 51388)
+++ grass/trunk/scripts/g.extension/g.extension.py 2012-04-12 12:48:19 UTC (rev 51389)
@@ -3,7 +3,7 @@
############################################################################
#
# MODULE: g.extension
-# AUTHOR(S): Markus Neteler
+# AUTHOR(S): Markus Neteler
# Pythonized & upgraded for GRASS 7 by Martin Landa
# PURPOSE: Tool to download and install extensions from GRASS Addons SVN into
# local GRASS installation
@@ -894,26 +894,26 @@
addons_file = os.path.join(options['prefix'], 'docs', 'html', fil)
if os.path.isfile(addons_file):
- return
+ return
try:
shutil.copyfile(dist_file,addons_file)
except OSError, e:
grass.fatal(_("Unable to create '%s': %s") % (addons_file, e))
-def create_dir(path):
- if os.path.isdir(path):
- return
+def create_dir(path):
+ if os.path.isdir(path):
+ return
- try:
- os.makedirs(path)
- except OSError, e:
- grass.fatal(_("Unable to create '%s': %s") % (path, e))
+ try:
+ os.makedirs(path)
+ except OSError, e:
+ grass.fatal(_("Unable to create '%s': %s") % (path, e))
grass.debug("'%s' created" % path)
def check_dirs():
- create_dir(os.path.join(options['prefix'], 'bin'))
+ create_dir(os.path.join(options['prefix'], 'bin'))
create_dir(os.path.join(options['prefix'], 'docs', 'html'))
check_style_files('grass_logo.png')
check_style_files('grassdocs.css')
More information about the grass-commit
mailing list