-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
C: QueuesOne of the queue-style frontendsOne of the queue-style frontendsPriority: LowDon't do these during a deadlineDon't do these during a deadlineS: AvailableCan be worked uponCan be worked upon
Description
The queues compiler uses __file__
to locate JSON inputs relative to the Python script:
calyx/frontends/queues/queues/compile_queue.py
Lines 82 to 84 in bda80c0
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:
Line 120 in 85968c4
"frontends/queues/tests/compiler/*.py" |
Metadata
Metadata
Assignees
Labels
C: QueuesOne of the queue-style frontendsOne of the queue-style frontendsPriority: LowDon't do these during a deadlineDon't do these during a deadlineS: AvailableCan be worked uponCan be worked upon