Skip to content

Commit

Permalink
feature matrix - fix path handling for windows and linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Mar 13, 2024
1 parent 265e3dc commit ea0f8db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev-docs/feature-format-matrix/create_table.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import yaml
import json
import glob
import pathlib

class Trie:

Expand Down Expand Up @@ -103,8 +103,8 @@ def table_cell(entry, _feature, _format_name, format_config):

def compute_trie():
trie = Trie()
for entry in glob.glob("qmd-files/**/document.qmd", recursive=True):
feature = entry.split("/")[1:-1]
for entry in pathlib.Path(".").glob("qmd-files/**/document.qmd"):
feature = entry.parts[1:-1]
front_matter = extract_metadata_from_file(entry)
try:
format = front_matter["format"]
Expand Down

0 comments on commit ea0f8db

Please sign in to comment.