Opened 9 years ago
Closed 9 years ago
#2785 closed defect (fixed)
pygrass util set_path bug
| Reported by: | krejcmat | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0.2 |
| Component: | PyGRASS | Version: | svn-trunk |
| Keywords: | path | Cc: | |
| CPU: | x86-64 | Platform: | Linux |
Description (last modified by )
Hi, The current code doesn't count with parameters of the function "from grass.pygrass.utils import set_path". Diff is below:
thanks Matej
[1]
Index: lib/python/pygrass/utils.py
===================================================================
--- lib/python/pygrass/utils.py (revision 66629)
+++ lib/python/pygrass/utils.py (working copy)
@@ -313,7 +313,7 @@
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)
Attachments (1)
Change History (6)
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|---|
| Milestone: | → 7.0.1 |
comment:2 by , 9 years ago
| Milestone: | 7.0.1 → 7.0.2 |
|---|
comment:3 by , 9 years ago
comment:4 by , 9 years ago
| Description: | modified (diff) |
|---|
comment:5 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Please attach diff as the attachment.