Merge pull request #2169 from pypa/bugfix/2132-normalize-drive-shortpath

Bugfix/2132 normalize drive shortpath
This commit is contained in:
Dan Ryan
2018-05-09 00:42:24 -04:00
committed by GitHub
+6 -1
View File
@@ -10,6 +10,11 @@ from pipenv.vendor import requests
from pipenv.vendor import six
from pipenv.vendor import toml
try:
from pathlib import Path
except ImportError:
from pipenv.vendor.pathlib2 import Path
if six.PY2:
class ResourceWarning(Warning):
@@ -45,7 +50,7 @@ class _PipenvInstance(object):
self.original_umask = os.umask(0o007)
self.original_dir = os.path.abspath(os.curdir)
self._path = TemporaryDirectory(suffix='-project', prefix='pipenv-')
self.path = self._path.name
self.path = str(Path(self._path.name).resolve())
# set file creation perms
self.pipfile_path = None
self.chdir = chdir