[QGIS Commit] r8817 - trunk/qgis/src/python
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Jul 19 14:03:46 EDT 2008
Author: jef
Date: 2008-07-19 14:03:45 -0400 (Sat, 19 Jul 2008)
New Revision: 8817
Modified:
trunk/qgis/src/python/qgspythonutilsimpl.cpp
Log:
apply changeset r8811 to trunk
Modified: trunk/qgis/src/python/qgspythonutilsimpl.cpp
===================================================================
--- trunk/qgis/src/python/qgspythonutilsimpl.cpp 2008-07-19 10:50:26 UTC (rev 8816)
+++ trunk/qgis/src/python/qgspythonutilsimpl.cpp 2008-07-19 18:03:45 UTC (rev 8817)
@@ -51,13 +51,14 @@
mMainDict = PyModule_GetDict(mMainModule); // borrowed reference
runString("import sys"); // import sys module (for display / exception hooks)
- runString("import traceback"); // for formatting stack traces
- runString("import __main__"); // to access explicitly global variables
-
+
// expect that bindings are installed locally, so add the path to modules
// also add path to plugins
runString("sys.path = [\"" + pythonPath() + "\", \"" + homePluginsPath() + "\", \"" + pluginsPath() + "\"] + sys.path");
+ runString("import traceback"); // for formatting stack traces
+ runString("import __main__"); // to access explicitly global variables
+
// import SIP
if (!runString("from sip import wrapinstance, unwrapinstance",
QObject::tr("Couldn't load SIP module.") + "\n" + QObject::tr("Python support will be disabled.")))
More information about the QGIS-commit
mailing list