Can I add an "additional module path" with python code

Can I restart 3d slicer and add an “additional module path” with python code.
360%E6%88%AA%E5%9B%BE-997969

Yes, sure. You don’t even need to restart to load additional Python modules. See source code of extension wizard for details.

1 Like

Also, you can have a look at how the modules panel handles directory paths.. And slicer.util.restart().

1 Like