From 9b586b953bfe3c94adb40d0a804de3d46fca1887 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sat, 18 Aug 2012 04:36:58 +0200 Subject: [PATCH] Use %APPDATA% for data on Windows. --- httpie/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httpie/config.py b/httpie/config.py index c286611e..093b09ba 100644 --- a/httpie/config.py +++ b/httpie/config.py @@ -1,6 +1,8 @@ import os +from requests.compat import is_windows __author__ = 'jakub' -CONFIG_DIR = os.path.expanduser('~/.httpie') +CONFIG_DIR = (os.path.expanduser('~/.httpie') if not is_windows else + os.path.expandvars(r'%APPDATA%\\httpie'))