diff --git a/pipenv/cli.py b/pipenv/cli.py index 4d3c79eb..1c900bfc 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -36,7 +36,7 @@ from . import pep508checker, progress from .environments import ( PIPENV_COLORBLIND, PIPENV_NOSPIN, PIPENV_SHELL_COMPAT, PIPENV_VENV_IN_PROJECT, PIPENV_USE_SYSTEM, PIPENV_TIMEOUT, - PIPENV_SKIP_VALIDATION + PIPENV_SKIP_VALIDATION, PIPENV_HIDE_EMOJIS ) # Backport required for earlier versions of Python. @@ -66,7 +66,7 @@ BAD_PACKAGES = ( 'pyparsing', 'appdirs', 'pipenv' ) -if os.name != 'nt': +if not PIPENV_HIDE_EMOJIS: now = time.localtime() # Halloween easter-egg. @@ -930,7 +930,7 @@ def kr_easter_egg(package_name): if package_name in ['requests', 'maya', 'crayons', 'delegator.py', 'records', 'tablib', 'background', 'clint']: # Windows built-in terminal lacks proper emoji taste. - if os.name == 'nt': + if PIPENV_HIDE_EMOJIS: click.echo(u'P.S. You have excellent taste!') else: click.echo(u'P.S. You have excellent taste! ✨ 🍰 ✨') diff --git a/pipenv/environments.py b/pipenv/environments.py index eb1b19ac..8b16c217 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -42,5 +42,9 @@ if os.name == 'nt': # Tells pip to pass extra stuff to $ pip install. PIPENV_PIP_INSTALL_FLAGS = os.environ.get('PIPENV_PIP_INSTALL_FLAGS') +PIPENV_HIDE_EMOJIS = os.environ.get('PIPENV_HIDE_EMOJIS') +if os.name == 'nt': + PIPENV_HIDE_EMOJIS = True + # Tells pipenv how long to wait for virtualenvs to be created in seconds PIPENV_TIMEOUT = int(os.environ.get('PIPENV_TIMEOUT', 120))