[GRASS-SVN] r67899 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 20 02:40:10 PST 2016
Author: martinl
Date: 2016-02-20 02:40:10 -0800 (Sat, 20 Feb 2016)
New Revision: 67899
Modified:
grass/trunk/lib/python/script/utils.py
Log:
libpython: formating cosmetics in get_lib_path()
Modified: grass/trunk/lib/python/script/utils.py
===================================================================
--- grass/trunk/lib/python/script/utils.py 2016-02-20 10:37:00 UTC (rev 67898)
+++ grass/trunk/lib/python/script/utils.py 2016-02-20 10:40:10 UTC (rev 67899)
@@ -288,7 +288,9 @@
idx = cwd.find(modname)
if idx < 0:
return None
- path = cwd[:idx+len(modname)] + sep + 'etc' + sep + modname
+ path = '{cwd}{sep}etc{sep}{modname}'.format(cwd=cwd[:idx+len(modname)],
+ sep=sep,
+ modname=modname)
return path
More information about the grass-commit
mailing list