mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Use the HTTPIE_CONFIG_DIR environment variable.
This commit is contained in:
1 parent
4029dbf309
commit
6c2001d1f5
1 file changed
+5
-3
+5
-3
@@ -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):
|
||||||
|
|||||||
Reference in new issue
Block a user