A subclass of PurePath, this class represents concrete paths of the system’s path flavour (instantiating it creates either a PosixPath or a WindowsPath):
class pathlib.Path(*pathsegments)
>>> Path('setup.py') PosixPath('setup.py')