From f50c911e6ef31a29da3afb01f31697d96b3a083a Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Mon, 8 Aug 2022 10:54:29 +0200 Subject: [PATCH] Document all environment variables Removed the initialize method. This was masking sphinx autodoc. Also it was directly used inside the __init__ method. Fix #5201 --- pipenv/environments.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pipenv/environments.py b/pipenv/environments.py index 7f1eb8bf..7e088762 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -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(