p might be Path("mkosi-tools") when a default config is included.
path contains the actual path to the resolved default config.
)
with chdir(path if path.is_dir() else Path.cwd()):
- self.parse_config_one(path if path.is_file() else Path.cwd(), parse_profiles=p.is_dir())
+ self.parse_config_one(path if path.is_file() else Path.cwd(), parse_profiles=path.is_dir())
def finalize_value(self, setting: ConfigSetting[T]) -> Optional[T]:
# If a value was specified on the CLI, it always takes priority. If the setting is a collection of