We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afb0fa8 + 9178520 commit 3df6a80Copy full SHA for 3df6a80
src/nn_core/common/utils.py
@@ -51,6 +51,8 @@ def load_envs(env_file: Optional[str] = None) -> None:
51
:param env_file: the file that defines the environment variables to use. If None
52
it searches for a `.env` file in the project.
53
"""
54
+ if env_file is None:
55
+ env_file = dotenv.find_dotenv(usecwd=True)
56
dotenv.load_dotenv(dotenv_path=env_file, override=True)
57
58
0 commit comments