Browse Source

pygrass: introduce minimalistic documentation of set_path()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67570 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
a59083a81c
1 changed files with 6 additions and 3 deletions
  1. 6 3
      lib/python/pygrass/utils.py

+ 6 - 3
lib/python/pygrass/utils.py

@@ -313,11 +313,14 @@ def get_lib_path(modname, libname=None):
 
 
 def set_path(modulename, dirname=None, path='.'):
-    """Set sys.path looking in the the local directory GRASS directories."""
+    """Set sys.path looking in the the local directory GRASS directories.
+
+    @param modulename
+    @param dirname
+    @param path used to run the code locally without compilation
+    """
     import sys
     # TODO: why dirname is checked first - the logic should be revised
-    # TODO  probably also 'path' should be also removed - it's used only by
-    #       compilation process for addons (see r.green for details)
     pathlib = None
     if dirname:
         pathlib = os.path.join(path, dirname)