mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 14:50:16 +00:00
Merge branch 'master' into bugfix/skip_requirements-gh-2349
This commit is contained in:
+9
-1
@@ -51,7 +51,15 @@ from .environments import (
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user