1
0
mirror of https://github.com/httpie/cli.git synced 2025-01-07 23:01:53 +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
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'))