Skip to content

Commit

Permalink
Merge pull request #4944 from smac89/patch-1
Browse files Browse the repository at this point in the history
improve detection of CI
  • Loading branch information
oz123 authored Feb 10, 2022
2 parents 0fba37d + 652b492 commit ef82533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/4944.bugfix.mdB
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use `CI` environment value, over mere existence of name
2 changes: 1 addition & 1 deletion pipenv/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ef82533

Please sign in to comment.