src/eric7/UI/UserInterface.py

branch
eric7
changeset 10823
13542803c1b1
parent 10816
236d97cba7c5
child 10828
fc1310995b98
equal deleted inserted replaced
10822:73d4965d75e0 10823:13542803c1b1
252 self.profiles = Preferences.getUI("ViewProfiles") 252 self.profiles = Preferences.getUI("ViewProfiles")
253 253
254 splash.showMessage(self.tr("Initializing Basic Services...")) 254 splash.showMessage(self.tr("Initializing Basic Services..."))
255 logging.getLogger(__name__).debug("Initializing Basic Services...") 255 logging.getLogger(__name__).debug("Initializing Basic Services...")
256 256
257 # Generate the redirection helpers
258 self.stdout = EricStdRedirector(False, self)
259 self.stdout.stdoutString.connect(self.appendToStdout)
260 self.stderr = EricStdRedirector(True, self)
261 self.stderr.stderrString.connect(self.appendToStderr)
262 # Redirect sys.stdout and/or sys.stderr if those are None 257 # Redirect sys.stdout and/or sys.stderr if those are None
263 if sys.stdout is None or UserInterface.ReleaseMode: 258 if sys.stdout is None or UserInterface.ReleaseMode:
264 sys.stdout = self.stdout 259 self.__stdout = EricStdRedirector(False, self)
260 self.__stdout.stdoutString.connect(self.appendToStdout)
261 sys.stdout = self.__stdout
265 if sys.stderr is None or UserInterface.ReleaseMode: 262 if sys.stderr is None or UserInterface.ReleaseMode:
266 sys.stderr = self.stderr 263 self.__stderr = EricStdRedirector(True, self)
264 self.__stderr.stderrString.connect(self.appendToStderr)
265 sys.stderr = self.__stderr
267 266
268 # create the remote server interface 267 # create the remote server interface
269 logging.getLogger(__name__).debug("Creating 'eric-ide' Server Interface...") 268 logging.getLogger(__name__).debug("Creating 'eric-ide' Server Interface...")
270 self.__ericServerInterface = EricServerInterface(self) 269 self.__ericServerInterface = EricServerInterface(self)
271 # register it early because it is needed very soon 270 # register it early because it is needed very soon

eric ide

mercurial