[GRASS-SVN] r49934 - grass/branches/develbranch_6/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 27 13:00:13 EST 2011


Author: martinl
Date: 2011-12-27 10:00:13 -0800 (Tue, 27 Dec 2011)
New Revision: 49934

Modified:
   grass/branches/develbranch_6/gui/scripts/g.extension.py
Log:
g.extension.py: fix tidy citizen for python scripts


Modified: grass/branches/develbranch_6/gui/scripts/g.extension.py
===================================================================
--- grass/branches/develbranch_6/gui/scripts/g.extension.py	2011-12-27 09:42:54 UTC (rev 49933)
+++ grass/branches/develbranch_6/gui/scripts/g.extension.py	2011-12-27 18:00:13 UTC (rev 49934)
@@ -581,6 +581,9 @@
     if os.path.exists(os.path.join(options['prefix'], 'scripts', options['extension'])):
         shutil.move(os.path.join(options['prefix'], 'scripts', options['extension']),
                     os.path.join(options['prefix'], options['extension']))
+    if os.path.exists(os.path.join(options['prefix'], 'scripts', options['extension'] + '.py')):
+        shutil.move(os.path.join(options['prefix'], 'scripts', options['extension'] + '.py'),
+                    os.path.join(options['prefix'], options['extension'] + '.py'))
     if sys.platform == 'win32' and \
             os.path.exists(os.path.join(options['prefix'], 'bin', options['extension']) + EXT_SCT):
         shutil.move(os.path.join(options['prefix'], 'bin', options['extension']) + EXT_SCT,



More information about the grass-commit mailing list