Skip to content

Commit c2a4c56

Browse files
committed
don't inlcude files from root in add html_meta script(plone#1147)
1 parent 127b6ce commit c2a4c56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/addMetaData.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"modified": 0,
2222
"unmodified": 0,
2323
}
24-
for root, dirs, files in os.walk("."):
24+
docs_dir = './docs' if os.path.isdir('./docs') else '.'
25+
26+
for root, dirs, files in os.walk(docs_dir):
2527
for name in files:
2628
if name.endswith(".md"):
2729
filename = os.path.join(root, name)

0 commit comments

Comments
 (0)