Пример #1
0
 def change_title(self, name):
     """Change process title."""
     self._debug('Change process title to %r.', name)
     set_process_title(name)
Пример #2
0
 def change_process_title(self, app):
     """Set process title."""
     set_process_title('[{0}@{1}]{2}'
                       .format(app.config.PROCESS_NAME,
                               socket.gethostname(),
                               ' '.join([''] + sys.argv[1:])))
Пример #3
0
 def change_process_title(self, app):
     """Set process title."""
     set_process_title('[{0}@{1}]{2}'.format(app.config.PROCESS_NAME,
                                             socket.gethostname(),
                                             ' '.join([''] + sys.argv[1:])))
Пример #4
0
 def change_title(self, name):
     """Change process title."""
     self._debug('Change process title to %r.', name)
     set_process_title(name)