Daily Dose of Data Science

Share this post

Run Python Project Directory As A Script

www.blog.dailydoseofds.com

Run Python Project Directory As A Script

Avi Chawla
Oct 30, 2022
1
Share

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.

This is concise and also makes it slightly easier for other users to use your project.

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.


I like to explore, experiment and write about data science concepts and tools. You could connect with me on LinkedIn.

1
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

ยฉ 2023 Avi Chawla
Privacy โˆ™ Terms โˆ™ Collection notice
Start WritingGet the app
Substackย is the home for great writing