Question:
I have a workspace called “bi-etl”. The structure is as follows:Following the link: Importing files from different folder
I tried the following but none seems to work so far.
Method 1: (Content of parameter_update.py)
ModuleNotFoundError: No module named 'file_a'
Trying another method,
based on “from application.app.folder.file import func_name”
(content of parameter_update.py)
Answer:
Perhaps not the most graceful solution but I have found one using the sys library.I added the module to the path, then used import statement for the module name.
An example:
If you have better answer, please add a comment about this, thank you!