We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pkg_resources
1 parent cf5b07c commit 5ac91ccCopy full SHA for 5ac91cc
getversion/main.py
@@ -94,7 +94,7 @@ def get_version_using_pkgresources(module # type: ModuleType
94
# pkg_dist = Distribution.from_filename(module.__file__)
95
96
if pkg_dist is not None:
97
- if Path(pkg_dist.location) != Path(join(dirname(module.__file__), pardir)):
+ if Path(pkg_dist.location).resolve() != Path(join(dirname(module.__file__), pardir)).resolve():
98
raise Exception("Another distribution of the same package (with version '%s') is installed, but is not the "
99
"one that was imported" % pkg_dist.version)
100
0 commit comments