summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2025-08-24 16:32:36 -0700
committerTheron Luhn <theron@luhn.com>2025-08-24 16:32:36 -0700
commitf70f1960808a5486fff11a4b36db332d545ac9f3 (patch)
tree09a1e0c19439cbb497a00c5a274e80b43f656dd2
parent97319b2d2239974b04cbef2b82d5405758095b7c (diff)
downloadpyramid-f70f1960808a5486fff11a4b36db332d545ac9f3.tar.gz
pyramid-f70f1960808a5486fff11a4b36db332d545ac9f3.tar.bz2
pyramid-f70f1960808a5486fff11a4b36db332d545ac9f3.zip
Remove `pkg_resources` dependency for `package_path`
-rw-r--r--src/pyramid/path.py2
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