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:
Oz N Tiram
2022-08-08 10:54:29 +02:00
parent acd5eb2cd4
commit f50c911e6e
+8 -7
View File
@@ -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(