Skip to content
Snippets Groups Projects

Local itk-vtk-viewer

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -37,7 +37,7 @@ def run_within_qim_dir():
node_bin = get_node_binaries_dir(get_nvm_dir(dir))
if node_bin is None:
# Didn't find node binaries there so it looks for enviroment variable to tell it where is nvm folder
node_bin = get_node_binaries_dir(Path(os.getenv('NVM_DIR')))
node_bin = get_node_binaries_dir(Path(str(os.getenv('NVM_DIR'))))
if node_bin is not None:
subprocess.run(F'export PATH="$PATH:{viewer_bin}:{node_bin}" && {START_COMMAND}', shell = True, stderr = subprocess.DEVNULL)
@@ -62,7 +62,7 @@ def itk_vtk_viewer(filename:str = None):
# We do a delay open for the browser, just so that the itk-vtk-viewer has time to start.
# Timing is not critical, this is just so that the user does not see the "server cannot be reached" page
def delayed_open():
time.sleep(2)
time.sleep(3)
global is_installed
c.acquire()
if is_installed:
Loading