diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-24 18:02:56 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-24 18:02:56 +0100 |
commit | 4933fa8bf5119e605e53f06a632cfabfcd991032 (patch) | |
tree | 0eb064aba5a7a044c0d9813dfb6df27ebe0d3001 /modules/raycast | |
parent | 99ff024f78f65ba0bc54fb409cfeca43ba2008fe (diff) | |
download | redot-engine-4933fa8bf5119e605e53f06a632cfabfcd991032.tar.gz |
[Buildsystem] Fix encoding when reading files
Diffstat (limited to 'modules/raycast')
-rw-r--r-- | modules/raycast/godot_update_embree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/raycast/godot_update_embree.py b/modules/raycast/godot_update_embree.py index 0e62824adc..f7af937c8b 100644 --- a/modules/raycast/godot_update_embree.py +++ b/modules/raycast/godot_update_embree.py @@ -187,7 +187,7 @@ with open(os.path.join(dest_dir, "kernels/config.h"), "w", encoding="utf-8", new ) -with open("CMakeLists.txt", "r") as cmake_file: +with open("CMakeLists.txt", "r", encoding="utf-8") as cmake_file: cmake_content = cmake_file.read() major_version = int(re.compile(r"EMBREE_VERSION_MAJOR\s(\d+)").findall(cmake_content)[0]) minor_version = int(re.compile(r"EMBREE_VERSION_MINOR\s(\d+)").findall(cmake_content)[0]) |