diff options
| author | Theron Luhn <theron@luhn.com> | 2025-08-24 21:42:18 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2025-08-24 21:42:18 -0700 |
| commit | ed315c142c7f66f6ee9ff24f4bad6997b0b45bfb (patch) | |
| tree | 6bb20659b62380709357bce0ba7d17686cbc1296 | |
| parent | 9b9ac95c7207a5b0a5c2fd7ef56977e9b285f206 (diff) | |
| download | pyramid-ed315c142c7f66f6ee9ff24f4bad6997b0b45bfb.tar.gz pyramid-ed315c142c7f66f6ee9ff24f4bad6997b0b45bfb.tar.bz2 pyramid-ed315c142c7f66f6ee9ff24f4bad6997b0b45bfb.zip | |
Add `get_spec` to `IPackageOverrides`
| -rw-r--r-- | src/pyramid/interfaces.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pyramid/interfaces.py b/src/pyramid/interfaces.py index 4ee294189..063b0385e 100644 --- a/src/pyramid/interfaces.py +++ b/src/pyramid/interfaces.py @@ -1079,6 +1079,14 @@ class IPEP302Loader(Interface): class IPackageOverrides(IPEP302Loader): """Utility for pkg_resources overrides""" + def get_spec(resource_name): + """Return a specifier for the resource. + + The specifier may be a dotted Python name or an absolute path on the + filesystem. + + """ + # VH_ROOT_KEY is an interface; its imported from other packages (e.g. # traversalwrapper) |
