mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Document all environment variables
Removed the initialize method. This was masking sphinx autodoc. Also it was directly used inside the __init__ method. Fix #5201
This commit is contained in:
@@ -107,19 +107,20 @@ Default is to show emojis. This is automatically set on Windows.
|
||||
|
||||
|
||||
class Setting:
|
||||
"""
|
||||
Control various settings of pipenv via environment variables.
|
||||
"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
||||
self.USING_DEFAULT_PYTHON = True
|
||||
self.initialize()
|
||||
|
||||
def initialize(self):
|
||||
"""Use the default Python"""
|
||||
|
||||
#: Location for Pipenv to store it's package cache.
|
||||
#: Default is to use appdir's user cache directory.
|
||||
self.PIPENV_CACHE_DIR = os.environ.get(
|
||||
"PIPENV_CACHE_DIR", user_cache_dir("pipenv")
|
||||
)
|
||||
"""Location for Pipenv to store it's package cache.
|
||||
|
||||
Default is to use appdir's user cache directory.
|
||||
"""
|
||||
|
||||
# Tells Pipenv which Python to default to, when none is provided.
|
||||
self.PIPENV_DEFAULT_PYTHON_VERSION = os.environ.get(
|
||||
|
||||
Reference in New Issue
Block a user