Skip to content

Commit

Permalink
Merge pull request #2331 from pypa/unc-paths
Browse files Browse the repository at this point in the history
added support for mounted drives via unc paths.
  • Loading branch information
techalchemy committed Jun 14, 2018
2 parents 9968170 + e478ce1 commit 403aa9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@
def _normalized(p):
if p is None:
return None
return normalize_drive(str(Path(p).resolve()))
loc = Path(p)
if loc.is_absolute():
return normalize_drive(str(loc))
else:
try:
loc = loc.resolve()
except OSError:
loc = loc.absolute()
return normalize_drive(str(loc))


DEFAULT_NEWLINES = u'\n'
Expand Down

0 comments on commit 403aa9d

Please sign in to comment.