Navigation Menu

Skip to content

Commit

Permalink
more sane python paths order: first qgis-wide python path, then plugins
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8508 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed May 23, 2008
1 parent 5507ec6 commit 8bd0f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgspythonutils.cpp
Expand Up @@ -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",
Expand Down

0 comments on commit 8bd0f9d

Please sign in to comment.