From 34f033bae046da526a75a0b76bfac322b4a15893 Mon Sep 17 00:00:00 2001 From: Filip Trivan <120225885+filiptrivan@users.noreply.github.com> Date: Thu, 27 Mar 2025 02:35:16 +0100 Subject: [PATCH] Updated frameworks.go, added main.py for file name. --- src/startupscriptgenerator/src/python/frameworks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/startupscriptgenerator/src/python/frameworks.go b/src/startupscriptgenerator/src/python/frameworks.go index d700e9d6ec..4e19ec318a 100644 --- a/src/startupscriptgenerator/src/python/frameworks.go +++ b/src/startupscriptgenerator/src/python/frameworks.go @@ -105,7 +105,7 @@ func (detector *flaskDetector) detect() bool { // Warning: the official "flask run" tool only looks for "wsgi.py" or "app.py". // If the user is trying to debug an app with a differene main module name, it will need a custom debug command. - filesToSearch := []string{"application.py", "app.py", "run.py", "index.py", "server.py", "wsgi.py"} + filesToSearch := []string{"application.py", "app.py", "run.py", "index.py", "server.py", "wsgi.py", "main.py"} for _, file := range filesToSearch { // TODO: app code might be under 'src'