mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #5334 from pypa/earlier-dot-env-load
Load the dot env earlier
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Load the dot env earlier so that ``PIPENV_CUSTOM_VENV_NAME`` is more useful across projects.
|
||||
+3
-3
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user