From e3cfbc0a7b2fcdad43efe8bb515dfd06dba98710 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 22 Jun 2022 14:56:19 +0200 Subject: 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 --- src/plugins/python/pythonproject.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/python/pythonproject.cpp') 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); } } -- cgit v1.2.1