allow specifying CLING_EXE env

This commit is contained in:
Min RK 2015-05-19 13:37:50 -07:00 committed by sftnight
parent 5eb4756052
commit 565e56cc7e
2 changed files with 10 additions and 3 deletions

View File

@ -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.

View File

@ -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)