Skip to content

Commit ef82533

Browse files
authored
Merge pull request #4944 from smac89/patch-1
improve detection of CI
2 parents 0fba37d + 652b492 commit ef82533

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/4944.bugfix.mdB

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use `CI` environment value, over mere existence of name

pipenv/environments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def normalize_pipfile_path(p):
9999
os.environ.pop("__PYVENV_LAUNCHER__", None)
100100
# Internal, to tell whether the command line session is interactive.
101101
SESSION_IS_INTERACTIVE = _isatty(sys.stdout)
102-
PIPENV_IS_CI = bool("CI" in os.environ or "TF_BUILD" in os.environ)
102+
PIPENV_IS_CI = env_to_bool(os.environ.get('CI') or os.environ.get('TF_BUILD') or False)
103103
PIPENV_COLORBLIND = bool(os.environ.get("PIPENV_COLORBLIND"))
104104
"""If set, disable terminal colors.
105105

0 commit comments

Comments
 (0)