ansys / ansys/pyfluent

Add support for passing a PathLike to functions that accept filenames

Open
#4,855 1 comment 0 reactions 1 assignee Claimed by @Gobot1234 View on GitHub
enhancement flobject
Dominant language
Python
Stars
497
Forks
77
Avg merge
22h 37m
Merged PRs (30d)
45

Description

### 📝 Description of the feature

I want to be able to use pathlib everywhere it makes sense
```py
# Create output directory for results
out = Path("out").mkdir(exist_ok=True)
...
graphics.picture.save_picture(file_name=out / "catalytic_converter_mesh.png")
```

### 💡 Steps for implementing the feature

Add to flobject.py, also needs changing in the generator to fix the type hints

### 🔗 Useful links and references

_No response_

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.