# Reloading scripted extension with multiple files

**URL:** <https://discourse.slicer.org/t/reloading-scripted-extension-with-multiple-files/18514>\
**Category:** Development\
**Created:** [July 5, 2021, 11:49am UTC](https://discourse.slicer.org/t/reloading-scripted-extension-with-multiple-files/18514 "2021-07-05T11:49:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorenzE](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Post date:** [July 5, 2021, 11:49am UTC](https://discourse.slicer.org/t/reloading-scripted-extension-with-multiple-files/18514/1 "2021-07-05T11:49:37Z")

</div>

I am trying to reload a scripted python extension with multiple .py files. Some of them are located in subfolders, see below for example.

extension\_name/  
├── service/  
│ ├── logic.py  
│ └── gui.py  
└── extension\_name.py

It seems that 3DSlicer only reloads the extension\_name.py file. Is this the expected behavior when reloading extensions? Or do I need to specify explicitly which files should be reloaded additionally?

---

<div class="post-metadata">

**Author:** ![LorenzE](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Post date:** [July 6, 2021, 9:47am UTC](https://discourse.slicer.org/t/reloading-scripted-extension-with-multiple-files/18514/2 "2021-07-06T09:47:32Z")

</div>

Duplicate of [Python scripted module development reload feature for multiple files - Development - 3D Slicer Community](https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363/2)
