*,
required: bool = True,
absolute: bool = True,
+ resolve: bool = True,
expanduser: bool = True,
expandvars: bool = True,
secret: bool = False) -> Path:
if absolute:
path = path.absolute()
+ if resolve:
+ path = path.resolve()
+
if secret and path.exists():
mode = path.stat().st_mode & 0o777
if mode & 0o007:
def config_make_path_parser(*,
required: bool = True,
absolute: bool = True,
+ resolve: bool = True,
expanduser: bool = True,
expandvars: bool = True,
secret: bool = False) -> ConfigParseCallback:
value,
required=required,
absolute=absolute,
+ resolve=resolve,
expanduser=expanduser,
expandvars=expandvars,
secret=secret,