[GRASS-SVN] r55683 - grass/trunk/lib/python/pygrass/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 10 06:16:39 PDT 2013
Author: zarch
Date: 2013-04-10 06:16:38 -0700 (Wed, 10 Apr 2013)
New Revision: 55683
Modified:
grass/trunk/lib/python/pygrass/modules/shortcuts.py
Log:
Fix infinite loop.
Modified: grass/trunk/lib/python/pygrass/modules/shortcuts.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/shortcuts.py 2013-04-10 12:52:49 UTC (rev 55682)
+++ grass/trunk/lib/python/pygrass/modules/shortcuts.py 2013-04-10 13:16:38 UTC (rev 55683)
@@ -9,9 +9,8 @@
from grass.script.core import get_commands
-from grass.pygrass.modules.interface.module import Module
+from interface import Module
-
_CMDS = list(get_commands()[0])
_CMDS.sort()
@@ -47,7 +46,7 @@
for mod in fnmatch.filter(_CMDS, "%s.*" % self.prefix)]
def __getattr__(self, name):
- return self.class_('%s.%s' % (self.prefix, name.replace('_', '.')))
+ return self.cls('%s.%s' % (self.prefix, name.replace('_', '.')))
# http://grass.osgeo.org/grass70/manuals/html70_user/full_index.html
More information about the grass-commit
mailing list