Skip to content

Commit eecca74

Browse files
committed
adding CK_PYTHON to be able to change default interpreter
1 parent e517fd4 commit eecca74

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* improving help
66
* fixing bug with pip installation on Anaconda for Windows
77
* fixing bug with pip installation on Linux
8+
* adding CK_PYTHON to change interpreter on Linux (for example python3)
89

910
* V1.6.4
1011
* Support ISO and human readable time during search

bin/ck

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ if [ -z "$CK_ROOT" ]; then
99
export CK_ROOT=$CK_path;
1010
fi
1111

12+
# Check which python to use
13+
if [ -z "$CK_PYTHON" ]; then
14+
export CK_PYTHON=python
15+
fi
16+
1217
# Load kernel module (either GIT/local installation or as package)
1318
if [ -f "$CK_ROOT/ck/kernel.py" ]; then
14-
python -W ignore::DeprecationWarning $CK_ROOT/ck/kernel.py "$@"
19+
$CK_PYTHON -W ignore::DeprecationWarning $CK_ROOT/ck/kernel.py "$@"
1520
else
16-
python -m ck.kernel "$@"
21+
$CK_PYTHON -m ck.kernel "$@"
1722
fi

0 commit comments

Comments
 (0)