diff --git a/news/4944.bugfix.mdB b/news/4944.bugfix.mdB new file mode 100644 index 0000000000..e27a224f87 --- /dev/null +++ b/news/4944.bugfix.mdB @@ -0,0 +1 @@ +Use `CI` environment value, over mere existence of name diff --git a/pipenv/environments.py b/pipenv/environments.py index 622bf2c06a..4395e7cd5e 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -99,7 +99,7 @@ def normalize_pipfile_path(p): os.environ.pop("__PYVENV_LAUNCHER__", None) # Internal, to tell whether the command line session is interactive. SESSION_IS_INTERACTIVE = _isatty(sys.stdout) -PIPENV_IS_CI = bool("CI" in os.environ or "TF_BUILD" in os.environ) +PIPENV_IS_CI = env_to_bool(os.environ.get('CI') or os.environ.get('TF_BUILD') or False) PIPENV_COLORBLIND = bool(os.environ.get("PIPENV_COLORBLIND")) """If set, disable terminal colors.