diff --git a/asl_gui_fsl b/asl_gui_fsl new file mode 100755 index 0000000..2c779d4 --- /dev/null +++ b/asl_gui_fsl @@ -0,0 +1,16 @@ +#!/usr/bin/env fslpython + +# Use modules in the same dir as wrapper script if present, then default +# to FSL modules +import sys, os +for d in [os.environ.get("FSLDIR", None), + os.environ.get("FSLDEVDIR", None, ), + os.path.dirname(os.path.abspath(sys.argv[0]))]: + if d: + sys.path.insert(0, os.path.join(d, "python")) + +from asl.gui import main +try: + main() +except RuntimeError as e: + print("Error: %s" % e)