# Setting widget variable from --python-code on Slicer.exe start

**URL:** https://discourse.slicer.org/t/setting-widget-variable-from-python-code-on-slicer-exe-start/23908
**Category:** Development
**Created:** [June 17, 2022, 2:33am UTC](https://discourse.slicer.org/t/setting-widget-variable-from-python-code-on-slicer-exe-start/23908 "2022-06-17T02:33:59Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![talmazov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/talmazov/32/3966_2.png) [@talmazov](https://discourse.slicer.org/u/talmazov)
#### Post date: [June 17, 2022, 1:14pm UTC](https://discourse.slicer.org/t/setting-widget-variable-from-python-code-on-slicer-exe-start/23908/5 "2022-06-17T13:14:16Z")

</div>

hey,  
apologies but i am not following.  
Do you mean adding the module path via code?  
I found this but the links are broken: [Can I add an "additional module path" with python code](https://discourse.slicer.org/t/can-i-add-an-additional-module-path-with-python-code/6189)

~Georgi

---

_[View the full topic](https://discourse.slicer.org/t/setting-widget-variable-from-python-code-on-slicer-exe-start/23908)._
