@@ -149,7 +149,7 PythonQt::PythonQt(int flags, const QByteArray& pythonQtModuleName) | |||||
149 |
|
149 | |||
150 | _p->_PythonQtObjectPtr_metaId = qRegisterMetaType<PythonQtObjectPtr>("PythonQtObjectPtr"); |
|
150 | _p->_PythonQtObjectPtr_metaId = qRegisterMetaType<PythonQtObjectPtr>("PythonQtObjectPtr"); | |
151 |
|
151 | |||
152 | if (flags & PythonAlreadyInitialized == 0) { |
|
152 | if ((flags & PythonAlreadyInitialized) == 0) { | |
153 | Py_SetProgramName("PythonQt"); |
|
153 | Py_SetProgramName("PythonQt"); | |
154 | if (flags & IgnoreSiteModule) { |
|
154 | if (flags & IgnoreSiteModule) { | |
155 | // this prevents the automatic importing of Python site files |
|
155 | // this prevents the automatic importing of Python site files |
General Comments 0
You need to be logged in to leave comments.
Login now