Private GIT

Skip to content
Snippets Groups Projects
Commit 764cf6e6 authored by Nils Vogels's avatar Nils Vogels
Browse files

Change process title for more clarity when running multiple python progs

parent 690b904b
No related branches found
No related tags found
No related merge requests found
......@@ -180,6 +180,16 @@ def main():
# Need console logging for SickBeard.py and SickBeard-console.exe
consoleLogging = (not hasattr(sys, "frozen")) or (sickbeard.MY_NAME.lower().find('-console') > 0)
# Attempt to rename the process for easier debugging
try:
from setproctitle import setproctitle
except ImportError:
if consoleLogging:
sys.stderr.write(u"setproctitle module is not available.\n")
setproctitle = lambda t: None
setproctitle(sickbeard.MY_NAME)
# Rename the main thread
threading.currentThread().name = "MAIN"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment