Skip to content

Commit

Permalink
Fix #704: ensure str path
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Oct 26, 2021
1 parent 5a55ae6 commit b22e79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-pdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _install(self, venv_path: Path) -> None:
args = [req] + [d for d in self.additional_deps if d]
if self.prerelease:
args.insert(0, "--pre")
pip_cmd = [venv_python, "-m", "pip", "install"] + args
pip_cmd = [str(venv_python), "-m", "pip", "install"] + args
_call_subprocess(pip_cmd)

def _make_bin(self, venv_path: Path) -> Path:
Expand Down Expand Up @@ -339,7 +339,7 @@ def _post_install(self, venv_path: Path, bin_path: Path) -> None:
script = bin_path / "pdm.exe"
else:
script = bin_path / "pdm"
subprocess.check_call([script, "--help"])
subprocess.check_call([str(script), "--help"])
print()
_echo(
"Successfully installed: {} ({}) at {}".format(
Expand Down

0 comments on commit b22e79c

Please sign in to comment.