Change os.name to common.PLATFORM
This commit is contained in:
@@ -35,8 +35,8 @@ import time
|
|||||||
import tzlocal
|
import tzlocal
|
||||||
|
|
||||||
import plexpy
|
import plexpy
|
||||||
from plexpy import config, database, helpers, logger, webstart
|
from plexpy import common, config, database, helpers, logger, webstart
|
||||||
if os.name == 'nt':
|
if common.PLATFORM == 'Windows':
|
||||||
from plexpy import windows
|
from plexpy import windows
|
||||||
|
|
||||||
# Register signals, such as CTRL + C
|
# Register signals, such as CTRL + C
|
||||||
@@ -241,7 +241,7 @@ def main():
|
|||||||
webstart.start()
|
webstart.start()
|
||||||
|
|
||||||
# Windows system tray icon
|
# Windows system tray icon
|
||||||
if os.name == 'nt':
|
if common.PLATFORM == 'Windows':
|
||||||
windows.set_startup()
|
windows.set_startup()
|
||||||
if plexpy.CONFIG.WIN_SYS_TRAY:
|
if plexpy.CONFIG.WIN_SYS_TRAY:
|
||||||
windows.win_system_tray()
|
windows.win_system_tray()
|
||||||
|
@@ -448,7 +448,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="help-block">Note: Web interface changes require a restart.</p>
|
<p class="help-block">Note: Web interface changes require a restart.</p>
|
||||||
% if os.name == 'nt':
|
% if common.PLATFORM == 'Windows':
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="http-settings" name="win_sys_tray" id="win_sys_tray" value="1" ${config['win_sys_tray']}> Enable System Tray Icon
|
<input type="checkbox" class="http-settings" name="win_sys_tray" id="win_sys_tray" value="1" ${config['win_sys_tray']}> Enable System Tray Icon
|
||||||
|
@@ -3179,7 +3179,7 @@ class WebInterface(object):
|
|||||||
|
|
||||||
# Enable or disable system startup
|
# Enable or disable system startup
|
||||||
if startup_changed:
|
if startup_changed:
|
||||||
if os.name == 'nt':
|
if common.PLATFORM == 'Windows':
|
||||||
windows.set_startup()
|
windows.set_startup()
|
||||||
|
|
||||||
# Get new server URLs for SSL communications and get new server friendly name
|
# Get new server URLs for SSL communications and get new server friendly name
|
||||||
|
Reference in New Issue
Block a user