Skip to content

Commit 566aeca

Browse files
authored
Merge pull request #9063 from quarto-dev/feature-matrix/windows-support
feature matrix - fix path handling for windows and linux support
2 parents c0b804f + ea0f8db commit 566aeca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev-docs/feature-format-matrix/create_table.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import yaml
22
import json
3-
import glob
3+
import pathlib
44

55
class Trie:
66

@@ -103,8 +103,8 @@ def table_cell(entry, _feature, _format_name, format_config):
103103

104104
def compute_trie():
105105
trie = Trie()
106-
for entry in glob.glob("qmd-files/**/document.qmd", recursive=True):
107-
feature = entry.split("/")[1:-1]
106+
for entry in pathlib.Path(".").glob("qmd-files/**/document.qmd"):
107+
feature = entry.parts[1:-1]
108108
front_matter = extract_metadata_from_file(entry)
109109
try:
110110
format = front_matter["format"]

0 commit comments

Comments
 (0)