mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Set PIPENV_ACTIVE when running pipenv run
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Set `PIPENV_ACTIVE=1` when running `pipenv run`. This is what `pipenv shell` already does.
|
||||
@@ -2284,6 +2284,8 @@ def do_run(command, args, three=None, python=False, pypi_mirror=None):
|
||||
|
||||
# Ensure that virtualenv is available.
|
||||
ensure_project(three=three, python=python, validate=False, pypi_mirror=pypi_mirror)
|
||||
# Set an environment variable, so we know we're in the environment.
|
||||
os.environ["PIPENV_ACTIVE"] = vistir.misc.fs_str("1")
|
||||
load_dot_env()
|
||||
# Activate virtualenv under the current interpreter's environment
|
||||
inline_activate_virtual_environment()
|
||||
|
||||
Reference in New Issue
Block a user