Skip to content

Commit 85fb6a4

Browse files
authored
bug(fix): fix python path
1 parent aa4261b commit 85fb6a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IDCBrowser/IDCHandlerModule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ def registerCustomProtocol(self):
227227

228228
elif platform.system() == "Darwin":
229229
slicer_exec_dir = os.path.dirname(sys.executable)
230-
grandparent_dir = os.path.dirname(os.path.dirname(slicer_exec_dir))
230+
parent_dir = os.path.dirname(slicer_exec_dir)
231231

232232
# Now, you can construct the path to PythonSlicer
233-
python_path = os.path.join(grandparent_dir, "bin", "PythonSlicer")
233+
python_path = os.path.join(parent_dir, "bin", "PythonSlicer")
234234

235235
current_dir = os.path.dirname(os.path.realpath(__file__))
236236
python_script_path = os.path.join(current_dir,'Resources', 'resolver.py')

0 commit comments

Comments
 (0)