mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Optional environment variable PLEX_CONFIG_PATH if you want something other than the default
This commit is contained in:
parent
355f4686c9
commit
6e60d1107d
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@ from platform import uname
|
|||
from plexapi.config import PlexConfig, reset_base_headers
|
||||
from uuid import getnode
|
||||
|
||||
|
||||
# Load User Defined Config
|
||||
CONFIG_PATH = os.path.expanduser('~/.config/plexapi/config.ini')
|
||||
DEFAULT_CONFIG_PATH = os.path.expanduser('~/.config/plexapi/config.ini')
|
||||
CONFIG_PATH = os.environ.get('PLEX_CONFIG_PATH', DEFAULT_CONFIG_PATH)
|
||||
CONFIG = PlexConfig(CONFIG_PATH)
|
||||
|
||||
# Core Settings
|
||||
|
|
Loading…
Reference in a new issue