I have a directory tree similar to this:
my_application
my_component
process_config.py
process_config.yaml
runner.py
I launch python runner.py
and it calls a class inside process_config.py
that reads the yaml file like this:
with open(
os.path.join("my_component", "process_config.yaml"), "r"
) as proces_config_defaults_source:
And it works fine when y run python runner.py
, but it can't locate the file when I run the file from the debugger. I have to use this option for it to work:
with open(
os.path.join("my_application", "my_component", "process_config.yaml"), "r"
) as proces_config_defaults_source:
How can I make the debugger to work the same as a python run?