[chimera-dev] Register-Unregister Chimera Extension (Plugin) to check source code changes
Tom Goddard
goddard at sonic.net
Tue Feb 21 11:28:43 PST 2017
Hi Pablo,
The basic development cycle is 1) modify the code, 2) restart Chimera and test, repeat. Reloading modules is a known problem with Python, not specific to Chimera. If you change file a.py you not only need to use "reload(a)", you would need to reload everything that uses “a.py" (via “import a”) because all those other files still refer to the old version of “a.py” even after you reload a.py.
Tom
> On Feb 20, 2017, at 1:28 PM, Pablo Solar Rodríguez wrote:
>
> Hi all again,
>
> While I try how to debug my plugin with Chimera (I posted that question here), I downloaded the 'Fit in map' tool source code to create my own plugin from it. So I changed the name in ChimeraExtension.py and loaded it in Tools -> Volume Data to check that my new plugin was loaded succesfully.
>
> The point now is that when I make some changes in my code, they are not immediately visible when I open the plugin again. Even more, I am not capable to "reload" the plugin with the new changes.
>
> Any solution to this? As I told you before, I'm fully newbie with Chimera and I feel pretty lost
>
> Thank you in advance!
>
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20170221/9c0ab090/attachment.html>
More information about the Chimera-dev
mailing list