Sfoglia il codice sorgente

pythonlib: add wxpython modules to pythonpath when calling gsetup.init()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67282 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 anni fa
parent
commit
d906cadb60
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/python/script/setup.py

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

@@ -174,7 +174,7 @@ def init(gisbase, dbase='', location='demolocation', mapset='PERMANENT'):
     # Set PYTHONPATH to find GRASS Python modules
     # TODO: isn't this useless? user already imported this somehow
     path = os.getenv('PYTHONPATH')
-    etcpy = os.path.join(gisbase, 'etc', 'python')
+    etcpy = os.path.join(gisbase, 'etc', 'python') + os.pathsep + os.path.join(gisbase, 'gui', 'wxpython')
     if path:
         path = etcpy + os.pathsep + path
     else: