-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] attach/detach reloadium
at runtime
#198
Comments
Reloadium has to process files during import time so attaching it after would be too late. |
Would something like this work:
Example: import reloadium
reloadium.import("test") # module is loaded and processed by reloadium
# Here python will find that module already patched by reloadium and will just reuse it.
import test
import reloadium
reloadium.attach()
` `test` will be imported and patched by reloadium
import test
I think it would help the same way as anywhere else though Blender does have a few caveats:
|
It would be nice if it was possible to attach
reloadium
at runtime:e.g. when you're debugging some script as usual and then you realize it would be helpful to have reloadium features now, then you would be able to load it, debug the issue and unload it and keep working
in my case I work on Blender (3D software that has Python API) addon and I don't start Python process - it started in some internal way by Blender. So I can't just replace
py my_script.py
withreloadium run my_script.py
to attach reloadium and option to do it somehow at runtime would helpThe text was updated successfully, but these errors were encountered: