Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Jul 2, 2022
1 parent 70cd61e commit 7b5be02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdm_venv/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ def perform_create(self, location: Path, args: Tuple[str] = ()) -> Path:
class VirtualenvBackend(Backend):
def perform_create(self, location: Path, args: Tuple[str] = ()) -> Path:
cmd = [sys.executable, "-m", "virtualenv", str(location)]
cmd.extend(["-p", self._resolved_interpreter.executable])
cmd.extend(["-p", str(self._resolved_interpreter.executable)])
cmd.extend(args)
self.subprocess_call(cmd)


class VenvBackend(VirtualenvBackend):
def perform_create(self, location: Path, args: Tuple[str]) -> Path:
cmd = [
self._resolved_interpreter.executable,
str(self._resolved_interpreter.executable),
"-m",
"venv",
str(location),
Expand Down

0 comments on commit 7b5be02

Please sign in to comment.