diff options
| author | Theron Luhn <theron@luhn.com> | 2025-08-24 16:32:36 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2025-08-24 16:32:36 -0700 |
| commit | f70f1960808a5486fff11a4b36db332d545ac9f3 (patch) | |
| tree | 09a1e0c19439cbb497a00c5a274e80b43f656dd2 | |
| parent | 97319b2d2239974b04cbef2b82d5405758095b7c (diff) | |
| download | pyramid-f70f1960808a5486fff11a4b36db332d545ac9f3.tar.gz pyramid-f70f1960808a5486fff11a4b36db332d545ac9f3.tar.bz2 pyramid-f70f1960808a5486fff11a4b36db332d545ac9f3.zip | |
Remove `pkg_resources` dependency for `package_path`
| -rw-r--r-- | src/pyramid/path.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
