mirror of
https://github.com/httpie/cli.git
synced 2025-06-27 04:51:28 +02: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
|
from requests.compat import is_windows
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIG_DIR = (os.path.expanduser('~/.httpie')
|
DEFAULT_CONFIG_DIR = os.environ.get(
|
||||||
if not is_windows else
|
'HTTPIE_CONFIG_DIR',
|
||||||
os.path.expandvars(r'%APPDATA%\\httpie'))
|
os.path.expanduser('~/.httpie') if not is_windows else
|
||||||
|
os.path.expandvars(r'%APPDATA%\\httpie')
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class BaseConfigDict(dict):
|
class BaseConfigDict(dict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user