use pathlib everywhere

This commit is contained in:
Jörg Thalheim
2024-09-02 18:25:17 +02:00
parent 0de5dea92a
commit 659e5b37dd
28 changed files with 88 additions and 113 deletions

View File

@@ -185,7 +185,7 @@ def generate_machine_hardware_info(
hw_file.replace(backup_file)
print(f"Backed up existing {hw_file} to {backup_file}")
with open(hw_file, "w") as f:
with hw_file.open("w") as f:
f.write(out.stdout)
print(f"Successfully generated: {hw_file}")