ansys / ansys/pyfluent

Problematic usage of config.codegen_outdir at global scope

Open
#5,166 0 comments 1 reaction 1 assignee Claimed by @mayankansys View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.