Sam_Horvath
(Sam Horvath (Kitware))
September 15, 2025, 9:30pm
1
Tomorrow, we will be having our next weekly hangout at 10:00 AM ET until 11:00 AM ET. a
Anyone is welcome to join at this link: https://bit.ly/slicer-googlemeet-hosted-by-kitware
Agenda:
Please post to this thread to put a topic on the agenda! We will try to prioritize agenda items during the meeting.
Thanks
Sam and J-Christophe
I have created a test to reproduce the problem with preserving value of variables (e.g., sys.path
) set up by modules on load. Good if we can discuss this.
main
← RafaelPalomar:test/python_module_set_variable_persistent
opened 01:55PM - 16 Sep 25 UTC
This adds a new python test which tries to (1) modify `sys.path` on module load … and (2) verify preservation of the changes after slicer startup. The mock module structure as follows:
```txt
SlicerStartupModuleTestHelperModule.py # Mock module which imports SlicerStartupModuleTestHelperPackage
SlicerStartupModuleTestHelperPackage/__init__.py # Mock Python package which modifies sys.path
SlicerStartupModuleTestHelperScript.py # Startup script which verifies if sys.path was modified accordingly
```
1 Like