# Running a custom extension on start

**URL:** https://discourse.slicer.org/t/running-a-custom-extension-on-start/22256
**Category:** Development
**Created:** [March 2, 2022, 9:50am UTC](https://discourse.slicer.org/t/running-a-custom-extension-on-start/22256 "2022-03-02T09:50:21Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [March 2, 2022, 12:28pm UTC](https://discourse.slicer.org/t/running-a-custom-extension-on-start/22256/4 "2022-03-02T12:28:58Z")

</div>

You can create a shortcut that includes the flag as suggested in the following post as that doesn’t require going into Slicer first and setting the “Home” module setting.

> [@Open a slicer module with python](https://discourse.slicer.org/t/open-a-slicer-module-with-python/21754/2):
>
> As an example I add this to the command line when I start slicer: --python-code "selectModule('WebServer')" But you can put the same in .slicerrc.py, maybe using slicer.util.selectModule for style purposes.

---

_[View the full topic](https://discourse.slicer.org/t/running-a-custom-extension-on-start/22256)._
