Skip to content

Commit

Permalink
Adjusted helper script to up-to-date Python
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Feb 24, 2021
1 parent 6d3a602 commit 5d3ecd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macrogen/uris.py
Expand Up @@ -412,7 +412,7 @@ def filename(self):

def _collect_wits():
items = defaultdict(list) # type: Dict[Union[Witness, Inscription, UnknownRef], List[Tuple[str, int]]]
macrogenesis_files = list(config.path.data.join('macrogenesis').rglob('**/*.xml'))
macrogenesis_files = list(Path(config.path.data, 'macrogenesis').glob('**/*.xml'))
for macrogenetic_file in macrogenesis_files:
tree = etree.parse(macrogenetic_file) # type: etree._ElementTree
for element in tree.xpath('//f:item', namespaces=config.namespaces): # type: etree._Element
Expand Down

0 comments on commit 5d3ecd8

Please sign in to comment.