Skip to content

Commit

Permalink
ensure dirs exist when installing pipx #9
Browse files Browse the repository at this point in the history
  • Loading branch information
cs01 committed Oct 21, 2018
1 parent b3593a9 commit 27990ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-pipx.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def main(argv=sys.argv[1:]):
pipx_local_venvs = Path(os.environ.get("PIPX_HOME", DEFAULT_PIPX_HOME)).resolve()
local_bin_dir = Path(os.environ.get("PIPX_BIN_DIR", DEFAULT_PIPX_BIN_DIR)).resolve()

pipx_local_venvs.mkdir(exist_ok=True)
local_bin_dir.mkdir(exist_ok=True)
pipx_local_venvs.mkdir(parents=True, exist_ok=True)
local_bin_dir.mkdir(parents=True, exist_ok=True)

pipx_symlink = local_bin_dir / "pipx"

Expand Down

0 comments on commit 27990ff

Please sign in to comment.