Otherwise, we don't take --directory into account as Path.cwd() is
evaluated on module import.
section="Output",
parse=config_make_path_parser(required=False),
paths=("mkosi.output",),
- default=Path.cwd(),
+ default_factory=lambda _: Path.cwd(),
help="Output directory",
),
MkosiConfigSetting(
section="Output",
parse=config_make_path_parser(required=False),
paths=("mkosi.workspace",),
- default=Path.cwd(),
+ default_factory=lambda _: Path.cwd(),
help="Workspace directory",
),
MkosiConfigSetting(