aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonproject.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2023-09-18 13:44:18 +0200
committerDavid Schulz <david.schulz@qt.io>2023-09-19 09:03:40 +0000
commit0a7eebc9c4cf9313a8fa4b79ee6ba19421979c3c (patch)
tree4a5c3b5780f5d783809b6f20f05d3c6da037a336 /src/plugins/python/pythonproject.cpp
parent383cfb77cc16cfb679f08930ba26cd95c0a84c42 (diff)
Python: add build target infos for .pyw files
Change-Id: I7f36fb14f79edf69f043b0ac566c9493e043c6f1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonproject.cpp')
-rw-r--r--src/plugins/python/pythonproject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp
index c9bb0f0b6ce..23cd8bd793b 100644
--- a/src/plugins/python/pythonproject.cpp
+++ b/src/plugins/python/pythonproject.cpp
@@ -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();