Skip to content

Problematic usage of config.codegen_outdir at global scope #5166

@mkundu1

Description

@mkundu1

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions