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'))