SyntaxFix
Write A Post
Hire A Developer
Questions
Using pathlib and preserving full path:
from pathlib import Path p = Path('/User/my/path') new_p = Path(p.parent.as_posix() + '/' + p.stem + '.aln')