The main configuration file config.yaml is automatically detected. There we don't cd into the project root folder anymore. However, secrets are not detected any pydantic complain about missing API keys when not working from project root. The same automatic detection should be used for secrets. A simple temporary fix is
try:
from syftr.configuration import cfg
except:
import os
os.chdir('./../')
when working from the examples or notebooks folder.
The main configuration file
config.yamlis automatically detected. There we don'tcdinto the project root folder anymore. However, secrets are not detected any pydantic complain about missing API keys when not working from project root. The same automatic detection should be used for secrets. A simple temporary fix iswhen working from the
examplesornotebooksfolder.