#!/usr/bin/env bash

# Get Slicer bin directory (a.k.a. location of this script)
bin="$(dirname "$0")"

# Determine if we are using Slicer's or system's Python interpreter
python="$bin/python-real"
[ -x "$python" ] || python=python

# Set up environment
eval $("$bin/PythonSlicer" --launcher-show-set-environment-commands)

# Run the Python launcher
"$python" "$bin/../libexec/Slicer-5.9/ExtensionWizard.py" "$@"
