uwefladrich/scriptengine-tasks-ecearth

`with_stem` from `pathlib` new in Python 3.9 - breaks earlier versions

Closed this issue · 1 comments

Don't know why this slipped automatic testing for #61, but it seems that with_stem was only introduced in 3.9 and is therefore breaking testing for Python 3.7 and 3.8.

Alternative implementation without with_stem:

path = orig_path.with_name(f"{stem}{orig_path.suffix}")