Skip to content

Commit 0b80896

Browse files
committed
adding CK_PYTHON env to let users select appropriate python for CK script
1 parent af6a5d0 commit 0b80896

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
* V1.6.12
2+
* adding CK_PYTHON env variable in ck script
3+
to let user select required python version (python or python3)
24
* automatically detecting python3 or python on Linux
35
* fixing license of a php OpenME code - now the same as CK
46
(tiny part to connect PHP-based web requests to CK)

bin/ck

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if [ -z "$CK_ROOT" ]; then
1010
fi
1111

1212
# Check which python to use
13+
if [ "$CK_PYTHON" != "" ]; then
14+
export PYTHON=$CK_PYTHON
15+
fi
16+
1317
if [ -z "$PYTHON" ]; then
1418
if $(python3 --version &> /dev/null) ; then
1519
export PYTHON=python3
@@ -18,6 +22,8 @@ if [ -z "$PYTHON" ]; then
1822
fi
1923
fi
2024

25+
echo $PYTHON
26+
2127
# Load kernel module (either GIT/local installation or as package)
2228
if [ -f "$CK_ROOT/ck/kernel.py" ]; then
2329
$PYTHON -W ignore::DeprecationWarning $CK_ROOT/ck/kernel.py "$@"

0 commit comments

Comments
 (0)