Revert "Improved support for projects located on Windows network drives // Issue #3417"

This reverts commit a0c959be28.
This commit is contained in:
Ivan Kravets committed 2023-04-21 11:25:48 +03:00
1 parent 6ee9cc04fb
commit 9344f3cd81
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ class PackageManagerSymlinkMixin:
pkg_dir, spec = self.resolve_symlink(path)
if not pkg_dir:
return None
pkg = PackageItem(os.path.abspath(pkg_dir))
pkg = PackageItem(os.path.realpath(pkg_dir))
if not pkg.metadata:
pkg.metadata = self.build_metadata(pkg.path, spec)
return pkg
+2 -2
View File
@@ -482,7 +482,7 @@ class PackageItem:
def __eq__(self, other):
conds = [
os.path.abspath(self.path) == os.path.abspath(other.path)
os.path.realpath(self.path) == os.path.realpath(other.path)
if self.path and other.path
else self.path == other.path,
self.metadata == other.metadata,
@@ -490,7 +490,7 @@ class PackageItem:
return all(conds)
def __hash__(self):
return hash(os.path.abspath(self.path))
return hash(os.path.realpath(self.path))
def exists(self):
return os.path.isdir(self.path)