Skip to content

Add support for passing a PathLike to functions that accept filenames #4855

@Gobot1234

Description

@Gobot1234

📝 Description of the feature

I want to be able to use pathlib everywhere it makes sense

# 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

Metadata

Metadata

Assignees

Labels

enhancementImprove any current implemented featureflobjectRelated to Flobject

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions