[QGIS Commit] r8811 - branches/Release-0_11_0/src/python
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Jul 17 17:40:24 EDT 2008
Author: jef
Date: 2008-07-17 17:40:23 -0400 (Thu, 17 Jul 2008)
New Revision: 8811
Modified:
branches/Release-0_11_0/src/python/qgspythonutilsimpl.cpp
Log:
fix python problem for windows installer
Modified: branches/Release-0_11_0/src/python/qgspythonutilsimpl.cpp
===================================================================
--- branches/Release-0_11_0/src/python/qgspythonutilsimpl.cpp 2008-07-17 20:55:25 UTC (rev 8810)
+++ branches/Release-0_11_0/src/python/qgspythonutilsimpl.cpp 2008-07-17 21:40:23 UTC (rev 8811)
@@ -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