Skip to content

queues: Use full explicit JSON paths in generator #2543

@sampsyo

Description

@sampsyo

The queues compiler uses __file__ to locate JSON inputs relative to the Python script:

base_dir = os.path.dirname(__file__)
json_subdir = "../tests/compiler/jsons"
file_path = os.path.join(base_dir, json_subdir, json_file)

This can cause problems when the queues package is properly installed into a Python environment. Let's switch this entry point to instead take ordinary file paths: i.e., ones relative to cwd. This will require also updating the tests that use this generator, such as:

calyx/runt.toml

Line 120 in 85968c4

"frontends/queues/tests/compiler/*.py"

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: QueuesOne of the queue-style frontendsPriority: LowDon't do these during a deadlineS: AvailableCan be worked upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions