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:
wonder 2008-05-23 17:10:50 +00:00
parent 5507ec6611
commit 8bd0f9d868

View File

@ -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",