# Module executable file

**URL:** <https://discourse.slicer.org/t/module-executable-file/17128>\
**Category:** Support\
**Created:** [April 16, 2021, 11:28am UTC](https://discourse.slicer.org/t/module-executable-file/17128 "2021-04-16T11:28:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 21, 2021, 8:07am UTC](https://discourse.slicer.org/t/module-executable-file/17128/9 "2021-04-21T08:07:32Z")

</div>

It is possible you are trying to access it too early. Maybe do some of the setup in the module widget’s `setup` function. Or connect a slot to the `startupCompleted` signal and do it there. To connect:

`slicer.app.connect("startupCompleted()", self.onStartupCompleted)`

---

_[View the full topic](https://discourse.slicer.org/t/module-executable-file/17128)._
