So I have the following api architecture
API >
       -------- data
                    |_ __init__.py
                    |_ data.py
                    |_ data.csv
       -------- model
                    |_ __init__.py
                    |_ model.py
       -------- modules.py
       -------- app.py
model.py & data.py both use modules from modules.py via from modules import * This works fine when launching everything from PyCharm.
However when trying to run it with the shell script in the main directory API
cd data && python data.py && cd ..
cd model && python model.py && cd ..
I get the error:
ModuleNotFoundError: No module named 'modules'
How to import correctly modules to run it both on PyCharm and command line?
 
     
    