Skip to content

Commit

Permalink
Fixed home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalarico committed May 12, 2018
1 parent d163e60 commit 8e45f12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ verify_ssl = true
name = "curses-win"

[packages]
"e1839a8" = {path = ".", editable = true}

[dev-packages]
"bump2version" = "*"
Expand Down
5 changes: 1 addition & 4 deletions pipenv_pipes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ def collapse_path(path):
""" Replaces Home and WorkOn values in a path for their variable names """
envvars = EnvVars()
workon = envvars.PIPENV_HOME
if not envvars.IS_WINDOWS:
home = os.environ['HOME']
else:
home = os.environ['USERPROFILE']
home = os.path.expanduser("~")
path = path.replace(workon, '$PIPENV_HOME')
path = path.replace(home, '~')
return path

0 comments on commit 8e45f12

Please sign in to comment.