Skip to content
Snippets Groups Projects

Local itk-vtk-viewer

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -8,6 +8,9 @@ def run_viewer(filename:str = None):
command = 'itk-vtk-viewer'
if filename is not None:
command = F'{command} {filename}'
#First try if the user doesn't have it globally
output = subprocess.run(command, shell = True, capture_output= True)
output = subprocess.run(F'export PATH="$PATH:{VIEWER_DIR}/node_modules/.bin/:{get_node_binaries_dir(NVM_DIR)}" && {command}', shell = True, capture_output= True)
if output.stderr:
Loading