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"
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.