1
0
mirror of https://github.com/httpie/cli.git synced 2026-04-24 19:53:55 +02:00

Use the HTTPIE_CONFIG_DIR environment variable.

This commit is contained in:
Jakub Roztocil
2012-09-17 02:12:16 +02:00
parent 4029dbf309
commit 6c2001d1f5
+5 -3
View File
@@ -6,9 +6,11 @@ from . import __version__
from requests.compat import is_windows
DEFAULT_CONFIG_DIR = (os.path.expanduser('~/.httpie')
if not is_windows else
os.path.expandvars(r'%APPDATA%\\httpie'))
DEFAULT_CONFIG_DIR = os.environ.get(
'HTTPIE_CONFIG_DIR',
os.path.expanduser('~/.httpie') if not is_windows else
os.path.expandvars(r'%APPDATA%\\httpie')
)
class BaseConfigDict(dict):