Skip to content
Snippets Groups Projects

Local itk-vtk-viewer

3 files
+ 12
64
Compare changes
  • Side-by-side
  • Inline

Files

@@ -19,9 +19,9 @@ def get_itk_dir() -> Path:
return dir
def get_nvm_dir(dir:Path = None) -> Path:
if platform.system() == 'Linux':
if platform.system() in [LINUX, MAC]:
following_folder = ".nvm"
elif platform.system() == 'Windows':
elif platform.system() == WINDOWS:
following_folder = ''
return dir.joinpath(following_folder) if dir is not None else get_qim_dir().joinpath(following_folder)
@@ -31,10 +31,10 @@ def get_node_binaries_dir(nvm_dir:Path = None) -> Path:
For windows we have to pass the argument nvm_dir and it is the itk-vtk_dir
"""
if platform.system() == "Linux":
if platform.system() in [LINUX, MAC]:
following_folder = "versions/node"
binaries_folder = 'bin'
elif platform.system() == 'Windows':
elif platform.system() == WINDOWS:
following_folder = 'node-versions'
binaries_folder = 'installation'
@@ -69,8 +69,7 @@ def run_for_platform(linux_func:Callable, windows_func:Callable, macos_func:Call
elif this_platform == WINDOWS:
return windows_func()
elif this_platform == MAC:
# return macos_func()
raise NotImplementedError
return macos_func()
def lambda_raise(err):
raise err
Loading