I'm trying to import modules (executables for some apps) in Python 3.6 from a folder inside my projec. I need main.py to import 'app.py' from ./bin/APP_NAME. ./bin/APP_NAME is for the app itself and ./data/APP_NAME is a place for the app to store data in. Heres the scructure:
~/.project
/bin
/APP_NAME
/app.py
/APP_NAME2
/app2.py
/data
/APP_NAME
/main.py (the emain program)
/git.py
How can I assign each apps bin and data folders to a variable in main.py so each app is isolated from the rest of the project, similar to how apps work on Android, and be able to import them in this way from main.py?
EDIT: I'm also dabbling a little in C++ and Bash so if it can't be done in Python alone, I can mix these languages if necessary!
~/.project
/bin
/APP_NAME
/app.py
/APP_NAME2
/app2.py
/data
/APP_NAME
/main.py (the emain program)
/git.py
How can I assign each apps bin and data folders to a variable in main.py so each app is isolated from the rest of the project, similar to how apps work on Android, and be able to import them in this way from main.py?
EDIT: I'm also dabbling a little in C++ and Bash so if it can't be done in Python alone, I can mix these languages if necessary!