mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
more sane python paths order: first qgis-wide python path, then plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@8508 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
5507ec6611
commit
8bd0f9d868
@ -51,7 +51,7 @@ void QgsPythonUtils::initPython(QgisInterface* interface)
|
||||
|
||||
// expect that bindings are installed locally, so add the path to modules
|
||||
// also add path to plugins
|
||||
runString("sys.path = [\"" + homePluginsPath() + "\", \"" + pythonPath() + "\", \"" + pluginsPath() + "\"] + sys.path");
|
||||
runString("sys.path = [\"" + pythonPath() + "\", \"" + homePluginsPath() + "\", \"" + pluginsPath() + "\"] + sys.path");
|
||||
|
||||
// import SIP
|
||||
if (!runString("from sip import wrapinstance, unwrapinstance",
|
||||
|
Loading…
x
Reference in New Issue
Block a user