Skip to content

Repeated usage of macro DB / registry #45

@hroncok

Description

@hroncok

The README shows:

registry = system_macro_registry()
with open("SPEC", "r", encoding="utf8") as fd:
    expanded_specfile = specfile_expand(fd.read(), registry)
    print("Name:", registry["name"].value)
    print("Version:", registry["version"].value)

That makes me think everything operates on one registry.

How do I parse multiple specfiles without polluting the registry or without calling IO-expensive system_macro_registry for each?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions