Skip to main content
Post Closed as "Needs details or clarity" by Patrick Artner, Niko Fohr, davidism
edited tags
Link
Patrick Artner
  • 51.9k
  • 10
  • 50
  • 79
Source Link

How to let Python execute script in each folder

I struggled with this question for 2 days and has no idea. I have 3 folders containing 3 individual python scripts each folder script run a function.

My question is how can I access them individually?

for only 1 folder, I create, say app.py with all routes inside. but how can I access 3 folder individually and can run individual function?

My file skeleton likes:

app.py (entrance)
|---departmentA
......|-------runme.py
......|-------templates
...........|-----index.html
|---departmentB
......|-------runme.py
......|-------templates
...........|-----index.html
|---departmentC
......|-------runme.py
......|-------templates
...........|-----index.html

Thanks Alex