reloadium icon indicating copy to clipboard operation
reloadium copied to clipboard

[Feature Request] reload reloadium_config.py

Open adoxentor opened this issue 2 years ago • 5 comments

Is there a way to reload reloadium_config.py while debugging?

adoxentor avatar Sep 07 '22 10:09 adoxentor

Unfortunately it's currently not possible. What is your use case here?

dkrystki avatar Sep 07 '22 11:09 dkrystki

I want something to happen after I change a certain file. I recreate some objects\ restart parts of the application based on it's state and the changed file, but developing this behavior is also something hot reloading will help with.

adoxentor avatar Sep 08 '22 11:09 adoxentor

Oh, I think you mean reload hooks. It is currently possible by defining before and after reload hook. Please check https://reloadium.io/documentation/config-file And https://reloadium.io/documentation/decorators

dkrystki avatar Sep 08 '22 11:09 dkrystki

the config file is what I am trying to hot reload, I want to hot reload the behavior of hot reloading.

adoxentor avatar Sep 08 '22 11:09 adoxentor

Ok gotcha, the decorators are currently hot reloaded but the config file is not. I'll have a look into this. If it's easy to implement it might go into the next release.

dkrystki avatar Sep 08 '22 11:09 dkrystki