1
0
mirror of https://github.com/httpie/cli.git synced 2025-01-10 00:28:12 +02:00

Use %APPDATA% for data on Windows.

This commit is contained in:
Jakub Roztocil 2012-08-18 04:36:58 +02:00
parent 149cbc1604
commit 9b586b953b

View File

@ -1,6 +1,8 @@
import os import os
from requests.compat import is_windows
__author__ = 'jakub' __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'))