A Python script is executed when we run a .𝗽𝘆 file. In large projects with many files, there's often a source (or base) Python file we begin our program from. To make things simpler, you can instead rename this base file to __𝗺𝗮𝗶𝗻__.𝗽𝘆. As a result, you can execute the whole pipeline by running the parent directory itself.
Run Python Project Directory As A Script
Run Python Project Directory As A Script
Run Python Project Directory As A Script
A Python script is executed when we run a .𝗽𝘆 file. In large projects with many files, there's often a source (or base) Python file we begin our program from. To make things simpler, you can instead rename this base file to __𝗺𝗮𝗶𝗻__.𝗽𝘆. As a result, you can execute the whole pipeline by running the parent directory itself.