Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/plugin/PythonPluginManager.cpp
Context not available. | |||||
59 | dbgScript << "Ignore desktop file w/o a module to import"; | 59 | dbgScript << "Ignore desktop file w/o a module to import"; | ||
---|---|---|---|---|---|
60 | return false; | 60 | return false; | ||
61 | } | 61 | } | ||
62 | #if PY_MAJOR_VERSION == 2 | ||||
63 | // Check if the plug-in is compatible with Python 2 or not. | ||||
64 | if (m_properties["X-Python-2-Compatible"].toBool() != true) { | ||||
65 | dbgScript << "Ignoring plug-in. It is marked incompatible with Python 2."; | ||||
66 | return false; | ||||
67 | } | ||||
68 | #endif | ||||
62 | 69 | | |||
63 | return true; | 70 | return true; | ||
64 | } | 71 | } | ||
Context not available. |