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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user