diff options
author | David Schulz <david.schulz@qt.io> | 2022-06-22 14:56:19 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-06-24 11:24:18 +0000 |
commit | e3cfbc0a7b2fcdad43efe8bb515dfd06dba98710 (patch) | |
tree | 5dda72a1ad639cd6528b5a40655fd1004ed8b57e /src | |
parent | 6c8605ced2a7bc0f41d3ddad2975d6f8c38b3da6 (diff) | |
download | qt-creator-e3cfbc0a7b2fcdad43efe8bb515dfd06dba98710.tar.gz |
Python: improve initializing python run configuration
Sets main.py as the default script. If we cannot find a main.py we
create a runconfig for every py file in the project.
Change-Id: I93f4c9a5c9e2825a592eee3707439e69a8aea566
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/python/pythonproject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp index e80a609796..d058130569 100644 --- a/src/plugins/python/pythonproject.cpp +++ b/src/plugins/python/pythonproject.cpp @@ -261,6 +261,7 @@ void PythonBuildSystem::triggerParsing() bti.buildKey = f; bti.targetFilePath = filePath; bti.projectFilePath = projectFilePath(); + bti.isQtcRunnable = filePath.fileName() == "main.py"; appTargets.append(bti); } } |