##// END OF EJS Templates
Add env to the kernelspec __init__...
Jason Grout -
Show More
@@ -42,10 +42,10 b' class KernelSpec(HasTraits):'
42 resource_dir = Unicode()
42 resource_dir = Unicode()
43
43
44 def __init__(self, resource_dir, argv, display_name, language,
44 def __init__(self, resource_dir, argv, display_name, language,
45 codemirror_mode=None):
45 codemirror_mode=None, env=None):
46 super(KernelSpec, self).__init__(resource_dir=resource_dir, argv=argv,
46 super(KernelSpec, self).__init__(resource_dir=resource_dir, argv=argv,
47 display_name=display_name, language=language,
47 display_name=display_name, language=language,
48 codemirror_mode=codemirror_mode)
48 codemirror_mode=codemirror_mode, env=env)
49 if not self.codemirror_mode:
49 if not self.codemirror_mode:
50 self.codemirror_mode = self.language
50 self.codemirror_mode = self.language
51
51
General Comments 0
You need to be logged in to leave comments. Login now