Use OnWindows from utils instead of ad-hoc platform check.

This commit is contained in:
Marc Burns 2014-04-01 20:29:20 -04:00
parent 8f116b849a
commit 6df96fcccf

View File

@ -112,7 +112,7 @@ def Main():
# If not on windows, detach from controlling terminal to prevent # If not on windows, detach from controlling terminal to prevent
# SIGINT from killing us. # SIGINT from killing us.
if sys.platform is not 'win32': if not utils.OnWindows():
os.setsid() os.setsid()
# This can't be a top-level import because it transitively imports # This can't be a top-level import because it transitively imports