SFELPHOTON-1337: SwissMX split/ cleanup/move repositories
This commit is contained in:
13
exec.sh
Executable file
13
exec.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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 $*
|
||||
Reference in New Issue
Block a user