File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,14 @@ void QgsPythonUtilsImpl::initPython(QgisInterface* interface)
51
51
mMainDict = PyModule_GetDict (mMainModule ); // borrowed reference
52
52
53
53
runString (" import sys" ); // import sys module (for display / exception hooks)
54
- runString (" import traceback" ); // for formatting stack traces
55
- runString (" import __main__" ); // to access explicitly global variables
56
-
54
+
57
55
// expect that bindings are installed locally, so add the path to modules
58
56
// also add path to plugins
59
57
runString (" sys.path = [\" " + pythonPath () + " \" , \" " + homePluginsPath () + " \" , \" " + pluginsPath () + " \" ] + sys.path" );
60
58
59
+ runString (" import traceback" ); // for formatting stack traces
60
+ runString (" import __main__" ); // to access explicitly global variables
61
+
61
62
// import SIP
62
63
if (!runString (" from sip import wrapinstance, unwrapinstance" ,
63
64
QObject::tr (" Couldn't load SIP module." ) + " \n " + QObject::tr (" Python support will be disabled." )))
You can’t perform that action at this time.
0 commit comments