allow specifying CLING_EXE env
This commit is contained in:
parent
5eb4756052
commit
565e56cc7e
@ -1,2 +1,5 @@
|
||||
# clingkernel
|
||||
C++ Kernel for Jupyter with Cling
|
||||
# Cling Kernel
|
||||
|
||||
C++ Kernel for Jupyter with Cling.
|
||||
|
||||
You will probably need to specify the path to cling with the `CLING_EXE` env variable.
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
from pipes import quote
|
||||
import re
|
||||
import signal
|
||||
@ -87,9 +88,12 @@ class ClingKernel(Kernel):
|
||||
'mimetype': ' text/x-c++src',
|
||||
'file_extension': '.c++'}
|
||||
|
||||
cling = Unicode('cling', config=True,
|
||||
cling = Unicode(config=True,
|
||||
help="Path to cling if not on your PATH."
|
||||
)
|
||||
def _cling_default(self):
|
||||
return os.environ.get('CLING_EXE') or 'cling'
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
|
||||
Kernel.__init__(self, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user