Skip to content

Commit

Permalink
fix: remove redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Jan 3, 2024
1 parent 2052572 commit e692b3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pdm/cli/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pdm.cli.commands.base import BaseCommand
from pdm.cli.hooks import HookManager
from pdm.cli.options import skip_option, venv_option
from pdm.cli.utils import check_project_file, get_pep582_path
from pdm.cli.utils import check_project_file
from pdm.exceptions import PdmUsageError
from pdm.project import Project
from pdm.signals import pdm_signals
Expand Down Expand Up @@ -184,8 +184,6 @@ def _run_process(
process_env = {**process_env, **dotenv_env}
else:
process_env = {**dotenv_env, **process_env}
pythonpath = process_env.get("PYTHONPATH", "").split(os.pathsep)
pythonpath = [get_pep582_path(project)] + [p for p in pythonpath if "pdm/pep582" not in p.replace("\\", "/")]
project_env = project.environment
this_path = project_env.get_paths()["scripts"]
process_env.update(project_env.process_env)
Expand Down

0 comments on commit e692b3b

Please sign in to comment.