We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8776a23 commit aa4261bCopy full SHA for aa4261b
IDCBrowser/IDCHandlerModule.py
@@ -226,7 +226,8 @@ def registerCustomProtocol(self):
226
print(f"Failed to register IDC Browser URL protocol on Windows: {e}")
227
228
elif platform.system() == "Darwin":
229
- grandparent_dir = os.path.dirname(os.path.dirname(slicer_dir))
+ slicer_exec_dir = os.path.dirname(sys.executable)
230
+ grandparent_dir = os.path.dirname(os.path.dirname(slicer_exec_dir))
231
232
# Now, you can construct the path to PythonSlicer
233
python_path = os.path.join(grandparent_dir, "bin", "PythonSlicer")
0 commit comments