From 92e728d2c389dda752a042875ea8933a92f73d3a Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 11 Aug 2014 21:42:06 -0500 Subject: Add Windows compatibility --- scilab_kernel.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scilab_kernel.py b/scilab_kernel.py index b30e6f4..3a46d2a 100644 --- a/scilab_kernel.py +++ b/scilab_kernel.py @@ -32,9 +32,14 @@ class ScilabKernel(Kernel): @property def banner(self): if self._banner is None: + if os.name == 'nt': + prog = 'Scilex' + else: + prog = 'scilab' + try: - banner = check_output(['scilab', - '-version']).decode('utf-8') + banner = check_output([prog, '-version']) + banner = banner.decode('utf-8') except CalledProcessError as e: banner = e.output self._banner = banner -- cgit