## #from sickgear import WEB_PORT, WEB_ROOT, PID, ENABLE_HTTPS, THEME_NAME #set sg_host = $getVar('sbHost', 'localhost') #set sg_port = str($getVar('sbHttpPort', WEB_PORT)) #set sg_root = $getVar('sbRoot', WEB_ROOT) #set sg_pid = $getVar('sbPID', str(PID)) #set sg_use_https = $getVar('sbHttpsEnabled', ENABLE_HTTPS) #set theme_suffix = ('', '-dark')['dark' == $getVar('sbThemeName', THEME_NAME)] #set do_shutdown = bool($getVar('shutdown', False)) ## can be None so must enforce bool ##