浏览代码

pythonlib: add addon bin dir to path on all platforms (sync to grass.py)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71658 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 7 年之前
父节点
当前提交
2b87a16c6c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/python/script/setup.py

+ 1 - 0
lib/python/script/setup.py

@@ -172,6 +172,7 @@ def init(gisbase, dbase='', location='demolocation', mapset='PERMANENT'):
     os.environ['GRASS_ADDON_BASE'] = addon_base
     if not mswin:
         os.environ['PATH'] += os.pathsep + os.path.join(addon_base, 'scripts')
+    os.environ['PATH'] += os.pathsep + os.path.join(addon_base, 'bin')
 
     # define LD_LIBRARY_PATH
     if '@LD_LIBRARY_PATH_VAR@' not in os.environ: