I asked this previously here but unfortuantely no full standalone answers were given. I'm trying hacky alternatives to subclassing but they're just not convenient. That's why I', putting this up again, looking for answers.
from pathlib import Path
class Pl(Path):
def __init__(self, *pathsegments: str):
super().__init__(*pathsegments)
Error at instantiation
AttributeError: type object 'Pl' has no attribute '_flavour'
I'm interested in a solution that works across different machines.