# Open a slicer module with python

**URL:** https://discourse.slicer.org/t/open-a-slicer-module-with-python/21754
**Category:** Support
**Created:** [February 2, 2022, 4:36pm UTC](https://discourse.slicer.org/t/open-a-slicer-module-with-python/21754 "2022-02-02T16:36:25Z")
**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: [February 2, 2022, 4:38pm UTC](https://discourse.slicer.org/t/open-a-slicer-module-with-python/21754/2 "2022-02-02T16:38:41Z")

</div>

As an example I add this to the command line when I start slicer:

```auto
--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/open-a-slicer-module-with-python/21754)._
