From 1b935caf64fc8f3eb72c7ee8c05a221f7ca9d9b7 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 20 Jan 2019 21:31:39 -0500 Subject: Also disallow leading '/' in resource paths. Ref #1635. --- docs/pkg_resources.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/pkg_resources.txt b/docs/pkg_resources.txt index 21aac814..cdc1a5a5 100644 --- a/docs/pkg_resources.txt +++ b/docs/pkg_resources.txt @@ -1132,8 +1132,9 @@ relative to the root of the identified distribution; i.e. its first path segment will be treated as a peer of the top-level modules or packages in the distribution. -Note that resource names must be ``/``-separated paths rooted at the package -and cannot contain relative names like ``".."``. Do *not* use +Note that resource names must be ``/``-separated paths rooted at the package, +cannot contain relative names like ``".."``, and cannot begin with a +leading ``/``. Do *not* use ``os.path`` routines to manipulate resource paths, as they are *not* filesystem paths. -- cgit v1.2.3