Access the config in multiple python files #2858
Unanswered
charbel-el-khoury
asked this question in
Q&A
Replies: 1 comment 1 reply
-
That's the most common pattern AFAIK. But nothing prevents you from implementing a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to access the config in multiple modules of a large project.
For example, if I have the following file structure:
What would be the best practice to access config variables in the functions and classes of
module1.py
andmodule2.py
? Right now I am passing theDictConfig
object as a parameter of the classes and functions in the module. Is there a bettter way to do this?Beta Was this translation helpful? Give feedback.
All reactions