# ScriptedSegmentEditorEffect - reloading?

**URL:** <https://discourse.slicer.org/t/scriptedsegmenteditoreffect-reloading/7882>\
**Category:** Development\
**Created:** [August 5, 2019, 3:03pm UTC](https://discourse.slicer.org/t/scriptedsegmenteditoreffect-reloading/7882 "2019-08-05T15:03:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [August 5, 2019, 3:03pm UTC](https://discourse.slicer.org/t/scriptedsegmenteditoreffect-reloading/7882/1 "2019-08-05T15:03:09Z")

</div>

I’m working on a new Segment Editor Effect, created using the wizard. When I modify some code and I want to test, clicking the “Reload” button seems to only reload the SegmentEditor module, not the new Editor Effect. Is there a way to have it “traverse the heirarchy” and reload all the effects?

Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 5, 2019, 3:22pm UTC](https://discourse.slicer.org/t/scriptedsegmenteditoreffect-reloading/7882/2 "2019-08-05T15:22:39Z")

</div>

Dependencies are quite complex when you register segment editor effects and so we did not implement reload. I usually create a test scene and set up auto-loading at startup using slicerrc.py. Then I simply restart the application when I need to test changes. You can also create automatic test script to speed up test cycles.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [August 5, 2019, 3:38pm UTC](https://discourse.slicer.org/t/scriptedsegmenteditoreffect-reloading/7882/3 "2019-08-05T15:38:31Z")

</div>

Got it - sounds good. Thanks!
