|
@@ -16,7 +16,9 @@ import sys, os
|
|
|
# If extensions (or modules to document with autodoc) are in another directory,
|
|
|
# add these directories to sys.path here. If the directory is relative to the
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
|
-sys.path.insert(0, os.path.abspath('../src/'))
|
|
|
+if not os.getenv('GISBASE'):
|
|
|
+ sys.exit("GISBASE not defined")
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass')))
|
|
|
|
|
|
# -- General configuration -----------------------------------------------------
|
|
|
|