How to run a python file from a bash script

  bash, python, shell

I have the following directory structure

root 
 run.sh
 - src
    main.py

 - helper
   __init__.py
    hello_world.py

In main.py I have

from helper import hello_world

hello_world.run()

What code do I put in run.sh so that executes main.py through bash?

Source: Python Questions

LEAVE A COMMENT