def set_process_title(progname, info=None):
 proctitle = ('[%s]' % progname)
 proctitle = (('%s %s' % (proctitle, info)) if info else proctitle)
 if _setproctitle:
  _setproctitle.setproctitle(proctitle)
 return proctitle

def set_process_title ( progname , info = None ) : proctitle = ( '[%s]' % progname ) proctitle = ( ( '%s %s' % ( proctitle , info ) ) if info else proctitle ) if _setproctitle : _setproctitle . setproctitle ( proctitle ) return proctitle
set the ps name for the currently running process .