mirror of
https://github.com/httpie/cli.git
synced 2025-01-24 22:38:37 +01:00
Use the HTTPIE_CONFIG_DIR
environment variable.
This commit is contained in:
parent
4029dbf309
commit
6c2001d1f5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user