Let's assume I import a custom python module as follows:
from folder1.folder2 import module
I use this import statement in multiple files. Can I add this file path in the environment variables so that I can use it in a dynamic way as follows or in a similar fashion:
(ENVIRONMENT VARIABLE)
EXPORT env_var_path=folder1.folder2
(PYTHON CODE)
from os.getenv("env_var_path") import module
The reason why I'm adding it in the env variables is that my folder names will change and keeping it in the env variables makes it a single source of change whenever I have to.
Thanks!