From e6befab6bb2ba1d38e4536181e13180be1022a52 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 25 Apr 2020 12:20:09 -0700 Subject: [PATCH] Change os.name to common.PLATFORM --- Tautulli.py | 6 +++--- data/interfaces/default/settings.html | 2 +- plexpy/webserve.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tautulli.py b/Tautulli.py index b08b011b..10d5608c 100755 --- a/Tautulli.py +++ b/Tautulli.py @@ -35,8 +35,8 @@ import time import tzlocal import plexpy -from plexpy import config, database, helpers, logger, webstart -if os.name == 'nt': +from plexpy import common, config, database, helpers, logger, webstart +if common.PLATFORM == 'Windows': from plexpy import windows # Register signals, such as CTRL + C @@ -241,7 +241,7 @@ def main(): webstart.start() # Windows system tray icon - if os.name == 'nt': + if common.PLATFORM == 'Windows': windows.set_startup() if plexpy.CONFIG.WIN_SYS_TRAY: windows.win_system_tray() diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 540f09d3..83ebbbff 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -448,7 +448,7 @@

Note: Web interface changes require a restart.

- % if os.name == 'nt': + % if common.PLATFORM == 'Windows':