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:
|
"frontends/queues/tests/compiler/*.py" |
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
This can cause problems when the
queuespackage 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