From f70f1960808a5486fff11a4b36db332d545ac9f3 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Sun, 24 Aug 2025 16:32:36 -0700 Subject: Remove `pkg_resources` dependency for `package_path` --- src/pyramid/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyramid/path.py b/src/pyramid/path.py index 5138344c7..3bc87b5f3 100644 --- a/src/pyramid/path.py +++ b/src/pyramid/path.py @@ -96,7 +96,7 @@ def package_path(package): # the result prefix = getattr(package, '__abspath__', None) if prefix is None: - prefix = pkg_resources.resource_filename(package.__name__, '') + prefix = resource_filename(package.__name__, '') # pkg_resources doesn't care whether we feed it a package # name or a module name within the package, the result # will be the same: a directory name to the package itself -- cgit v1.2.3