aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-23 23:37:37 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-23 23:37:37 +0200
commit2846ee256b11ec3e577fab35f0c063e6428951b3 (patch)
tree782b9589990824c1fe9a7524022743fcce46390c /src
parent40ad490efe38a1f1c66e75b1a99b1956ff06736e (diff)
Change location of livestreamerrc on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/livestreamer/cli.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/livestreamer/cli.py b/src/livestreamer/cli.py
index b6a4b94..e04f545 100644
--- a/src/livestreamer/cli.py
+++ b/src/livestreamer/cli.py
@@ -65,7 +65,10 @@ pluginopt.add_argument("-r", "--rtmpdump", metavar="path",
pluginopt.add_argument("-j", "--jtv-cookie", metavar="cookie",
help="Specify JustinTV cookie to allow access to subscription channels")
-RCFILE = os.path.expanduser("~/.livestreamerrc")
+if is_win32:
+ RCFILE = os.path.join(os.environ["APPDATA"], "livestreamer", "livestreamerrc")
+else:
+ RCFILE = os.path.expanduser("~/.livestreamerrc")
def exit(msg):
sys.exit(("error: {0}").format(msg))