Update preflight-checks.py for windows

This commit is contained in:
ellensp 2024-07-09 18:55:36 +12:00 committed by GitHub
parent 72a2699b10
commit 8b81aae870
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,7 @@ if pioutil.is_pio_build():
for f in config_files: for f in config_files:
conf_path = project_dir / "Marlin" / f conf_path = project_dir / "Marlin" / f
if conf_path.is_file(): if conf_path.is_file():
with open(conf_path, 'r') as file: with open(conf_path, 'r', encoding="utf8") as file:
text = file.read() text = file.read()
modified_text = text.replace("BOTH(", "ALL(").replace("EITHER(", "ANY(") modified_text = text.replace("BOTH(", "ALL(").replace("EITHER(", "ANY(")
if text != modified_text: if text != modified_text: