forked from qt-creator/qt-creator
Python: add build target infos for .pyw files
Change-Id: I7f36fb14f79edf69f043b0ac566c9493e043c6f1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@ const char PYLS_SETTINGS_ID[] = "Python.PyLSSettingsID";
|
||||
* MIME type
|
||||
******************************************************************************/
|
||||
const char C_PY_MIMETYPE[] = "text/x-python";
|
||||
const char C_PY_GUI_MIMETYPE[] = "text/x-python-gui";
|
||||
const char C_PY3_MIMETYPE[] = "text/x-python3";
|
||||
const char C_PY_MIME_ICON[] = "text-x-python";
|
||||
|
||||
|
@@ -232,7 +232,8 @@ void PythonBuildSystem::triggerParsing()
|
||||
|
||||
newRoot->addNestedNode(std::make_unique<PythonFileNode>(entry.filePath, displayName, fileType));
|
||||
const MimeType mt = mimeTypeForFile(entry.filePath, MimeMatchMode::MatchExtension);
|
||||
if (mt.matchesName(Constants::C_PY_MIMETYPE) || mt.matchesName(Constants::C_PY3_MIMETYPE)) {
|
||||
if (mt.matchesName(Constants::C_PY_MIMETYPE) || mt.matchesName(Constants::C_PY3_MIMETYPE)
|
||||
|| mt.matchesName(Constants::C_PY_GUI_MIMETYPE)) {
|
||||
BuildTargetInfo bti;
|
||||
bti.displayName = displayName;
|
||||
bti.buildKey = entry.filePath.toString();
|
||||
|
Reference in New Issue
Block a user