Description
The template_structure.json path is hardcoded as a relative path in convert_beaver_to_reforce.py:262:
templates_path = '../../data/template_structure.json'
with open(templates_path, 'r') as f:
This path is relative to the working directory at runtime, which means the function fails when called from a different directory than expected.
Suggestion
- Make the templates path an optional parameter in
convert_beaver_to_reforce() with a sensible default.
- Or derive the path relative to the script location using
__file__.
Affected File
eval/reforce/convert_beaver_to_reforce.py (line 260-262)
Description
The
template_structure.jsonpath is hardcoded as a relative path inconvert_beaver_to_reforce.py:262:This path is relative to the working directory at runtime, which means the function fails when called from a different directory than expected.
Suggestion
convert_beaver_to_reforce()with a sensible default.__file__.Affected File
eval/reforce/convert_beaver_to_reforce.py(line 260-262)