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:
parent
149cbc1604
commit
9b586b953b
@ -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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user