#!/bin/bash # this file is copied by the Makefile to /sf/cristallina/bin/swissmx # Check if Python version is less than 3.6 if python -c 'import sys; exit(1) if sys.version_info[0] < 3 or sys.version_info[1] < 6 else exit(0)' then BIN=python else BIN=/opt/gfa/python-3.8/latest/bin/python fi APP=/sf/cristallina/applications/SwissMX/swissmx.py cd ${APP%/*} echo $BIN $APP $* $BIN $APP $*