##// END OF EJS Templates
fix kernel connection messsage with non-default profile...
MinRK -
Show More
@@ -221,11 +221,14 b' class KernelApp(BaseIPythonApplication):'
221 # Helper to make it easier to connect to an existing kernel.
221 # Helper to make it easier to connect to an existing kernel.
222 # set log-level to critical, to make sure it is output
222 # set log-level to critical, to make sure it is output
223 self.log.critical("To connect another client to this kernel, use:")
223 self.log.critical("To connect another client to this kernel, use:")
224 if os.path.dirname(self.connection_file) == self.profile_dir.security_dir:
224
225 basename = os.path.basename(self.connection_file)
226 if basename == self.connection_file or \
227 os.path.dirname(self.connection_file) == self.profile_dir.security_dir:
225 # use shortname
228 # use shortname
226 tail = os.path.basename(self.connection_file)
229 tail = basename
227 if self.profile != 'default':
230 if self.profile != 'default':
228 tail += " --profile %s" % self.profile_name
231 tail += " --profile %s" % self.profile
229 else:
232 else:
230 tail = self.connection_file
233 tail = self.connection_file
231 self.log.critical("--existing %s", tail)
234 self.log.critical("--existing %s", tail)
General Comments 0
You need to be logged in to leave comments. Login now