PyAPI: use binary file access running scripts on non-WIN32 platforms

Python itself uses binary file access when opening files so this
shouldn't cause any problems.
This commit is contained in:
Campbell Barton
2023-11-28 16:59:52 +11:00
parent 5486c70aae
commit d71c449d25

View File

@@ -137,7 +137,7 @@ static bool python_script_exec(
}
}
else {
FILE *fp = BLI_fopen(filepath, "r");
FILE *fp = BLI_fopen(filepath, "rb");
filepath_namespace = filepath;
if (fp) {