Skip to content

Commit

Permalink
Support finding GAP in $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspf committed Oct 18, 2017
1 parent cb479d0 commit 3fb8039
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion etc/jupyter/jupyter-kernel-gap
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/bin/sh

GAP=`which gap`

if [ x$GAP == x ] ; then
GAP=$JUPYTER_GAP_EXECUTABLE
fi
if [ x$GAP == x ] ; then
echo "Error: No executable GAP found"
exit
fi

echo "GAP Jupyter Kernel Starting"
$JUPYTER_GAP_EXECUTABLE -q <<EOF
$GAP -q <<EOF
LoadPackage("JupyterKernel");
JUPYTER_KernelStart_GAP("$1");
QUIT_GAP(0);
Expand Down

1 comment on commit 3fb8039

@olexandr-konovalov
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markuspf of course this breaks things for users like me - I have gap for latest stable release and gapdev for GAP from the most recent master branch build. But I can live with this - I only need to wait until GAP 4.9.

Please sign in to comment.