Load the dot env earlier so that PIPENV_CUSTOM_VENV_NAME is more useful across projects.

This commit is contained in:
Matt Davis
2022-09-07 06:27:03 -04:00
parent ffcbdfa817
commit fb4765a17b
+3 -3
View File
@@ -2731,6 +2731,9 @@ def do_run(
"""
from .cmdparse import ScriptEmptyError
load_dot_env(project, quiet=quiet)
env = os.environ.copy()
# Ensure that virtualenv is available.
ensure_project(
project,
@@ -2740,9 +2743,6 @@ def do_run(
pypi_mirror=pypi_mirror,
)
load_dot_env(project, quiet=quiet)
env = os.environ.copy()
path = env.get("PATH", "")
if project.virtualenv_location:
new_path = os.path.join(