From a921e807e0885a78a5f259cdb6020cd6168e710c Mon Sep 17 00:00:00 2001 From: Anton Amirian Date: Sun, 30 Oct 2016 20:19:26 +0200 Subject: [PATCH] allow windows users to use home for their config --- src/livestreamer_cli/constants.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/livestreamer_cli/constants.py b/src/livestreamer_cli/constants.py index 56bdac83..df3a7d8d 100644 --- a/src/livestreamer_cli/constants.py +++ b/src/livestreamer_cli/constants.py @@ -8,7 +8,10 @@ if is_win32: APPDATA = os.environ["APPDATA"] - CONFIG_FILES = [os.path.join(APPDATA, "livestreamer", "livestreamerrc")] + CONFIG_FILES = [ + os.path.join(APPDATA, "livestreamer", "livestreamerrc"), + os.path.expanduser("~/.livestreamerrc") + ] PLUGINS_DIR = os.path.join(APPDATA, "livestreamer", "plugins") else: XDG_CONFIG_HOME = os.environ.get("XDG_CONFIG_HOME", "~/.config")