summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-03-22 01:08:37 (GMT)
committerGitHub <noreply@github.com>2022-03-22 01:08:37 (GMT)
commit3751b6b030b4a3b88959b4f3c4ef2e58d325e497 (patch)
tree2e88aeafa9c1e99c1ab33ec0ec4d4c92bb061517 /PC
parent19058b9f6271338bcc46b7d30fe79a83990cc35c (diff)
downloadcpython-3751b6b030b4a3b88959b4f3c4ef2e58d325e497.zip
cpython-3751b6b030b4a3b88959b4f3c4ef2e58d325e497.tar.gz
cpython-3751b6b030b4a3b88959b4f3c4ef2e58d325e497.tar.bz2
bpo-47086: Remove .chm from Windows installer and add HTML docs (GH-32038)
Diffstat (limited to 'PC')
-rw-r--r--PC/layout/support/filesets.py2
-rw-r--r--PC/layout/support/options.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/PC/layout/support/filesets.py b/PC/layout/support/filesets.py
index 47f727c..3f63f68 100644
--- a/PC/layout/support/filesets.py
+++ b/PC/layout/support/filesets.py
@@ -93,6 +93,8 @@ def _return_true(f):
def rglob(root, patterns, condition=None):
+ if not os.path.isdir(root):
+ return
if isinstance(patterns, tuple):
for p in patterns:
yield from _rglob(root, p, condition or _return_true)
diff --git a/PC/layout/support/options.py b/PC/layout/support/options.py
index 9faf20c..e831029 100644
--- a/PC/layout/support/options.py
+++ b/PC/layout/support/options.py
@@ -80,7 +80,7 @@ PRESETS = {
"venv",
"dev",
"symbols",
- "chm",
+ "html-doc",
],
},
"embed": {