# Python scripted module development reload feature for multiple files

**URL:** <https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363>\
**Category:** Development\
**Created:** [April 2, 2019, 8:42am UTC](https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363 "2019-04-02T08:42:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 2, 2019, 9:23pm UTC](https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363/2 "2019-04-02T21:23:16Z")

</div>

It’s a very good question - I did the original scripted module reload code many years ago and it took a while to sort out all the tweaks needed to get it working, so I never went back and looked into the options multiple-file reload, which is too bad because it tends to make me put more than I should in the main scripted module file.

Probably the same techniques that work for the main module would also work for imported files and maybe there’s even a way to discover the dependencies automatically and reload them all or maybe the scripted module could provide a list of code to reload. It may also be that with the python3 transition there will be new ways to do this, I haven’t looked. Would love to see a PR for this.

---

_[View the full topic](https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363)._
