aboutsummaryrefslogtreecommitdiffstats
path: root/docs/pkg_resources.txt
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-01-20 21:31:39 -0500
committerJason R. Coombs <jaraco@jaraco.com>2019-01-20 21:33:53 -0500
commit1b935caf64fc8f3eb72c7ee8c05a221f7ca9d9b7 (patch)
tree6198961b49558cb82c05fe634c670b7edc041f3c /docs/pkg_resources.txt
parent20f38687bbcf0e668902d37d51023f1fddc55273 (diff)
downloadexternal_python_setuptools-1b935caf64fc8f3eb72c7ee8c05a221f7ca9d9b7.tar.gz
external_python_setuptools-1b935caf64fc8f3eb72c7ee8c05a221f7ca9d9b7.tar.bz2
external_python_setuptools-1b935caf64fc8f3eb72c7ee8c05a221f7ca9d9b7.zip
Also disallow leading '/' in resource paths. Ref #1635.
Diffstat (limited to 'docs/pkg_resources.txt')
-rw-r--r--docs/pkg_resources.txt5
1 files changed, 3 insertions, 2 deletions
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.