Hi everyone, I have this folder structure for on...
# ask-metaflow
h
Hi everyone, I have this folder structure for one of my projects with metaflow. └── folder/ ├── subfolder_1/ │ └── flow.py ├── subfolder_2/ │ ├── flow.py │ └── config_2.json └── global_config.json The flows are deployed on AWS and I would like to understand the reason why the flow in subfolder_2 has access to the global_config.json file but not the config_2.json file. I do something like this at the beginning of flow.py in subfolder_2:
parent_folder = Path(__file__).parent.parent
global_configuration_path = parent_folder / "global_config.json"
current_folder = Path(__file__).parent
local_configuration_path = current_folder / "config_2.json"
Since I forgot to add ".json" to the package suffixes when creating the step function, I was thinking that it would be failing while reading the global_config.json file but it does not seem to be the case, and it fails while reading config_2.json. By the way, I use a custom docker image where needed dependencies are installed, but all the files in folder are copied as well. I don't know if that could explain the behaviour. Thanks for your support 🙏
1