Problematic usage of config.codegen_outdir at global scope
Open
- Dominant language
- Python
- Stars
- 497
- Forks
- 77
- Avg merge
- 22h 37m
- Merged PRs (30d)
- 45
Description
The following code at the global scope within src\ansys\fluent\core\codegen\builtin_settingsgen.py is problematic. If config.codegen_outdir is set after builtin_settingsgen is imported _PY_FILE/_PYI_FILE will have the old path. The issue has been observed during Fluent codegen.
```
_PY_FILE = config.codegen_outdir / "solver" / "settings_builtin.py"
_PYI_FILE = config.codegen_outdir / "solver" / "settings_builtin.pyi"
```
Contributor guide
Assessment
This issue has not been assessed yet.