'How to show netlify the file it has to run?

I have a web project written in python and Flask. I want to publish it with Netlify and for that to work it has to run the main.py file.

I know that in Heroku you have to create a Procfile to show it, maybe there is the same option in Netlify? Or is not possible to achieve something like this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source