|
@@ -313,7 +313,7 @@ def set_path(modulename, dirname, path='.'):
|
|
|
pathlib = os.path.join(path, dirname)
|
|
|
if os.path.exists(pathlib):
|
|
|
# we are running the script from the script directory
|
|
|
- sys.path.append(os.path.abspath(path))
|
|
|
+ sys.path.append(os.path.abspath(pathlib))
|
|
|
else:
|
|
|
# running from GRASS GIS session
|
|
|
path = get_lib_path(modulename, dirname)
|