Closed droserasprout closed 1 month ago
Hi @droserasprout can I work on this please?
I am applying to this issue via OnlyDust platform.
I am a returning Contributor here. Willing to solve this issue with my expertise in Python.
I would approach this issue by keeping the global varibale DIPDUP_DEBUG
and make it such that the new method which will be added in dipdup.env
module will have reload constants on demand. This can be done by a reloading function which will reload the varibles in dipdup.env on demand. This function could be invoked after processing env files or CLI arguments.
We can also discuss this further if more options are available.
Currently there is an inconsistency in env variables and env files (
-e
cli arg). Internal variables likeDIPDUP_DEBUG
are read once ondipdup.env
module import, and thus can't be set with env-files. We need a method to reload constants indipdup.env
on demand.global
s are okay, but maybe there are more elegant options without breaking compatibility.