Use utf-8 encoding for loadscript.vpy, handles nonstandard characters.

This commit is contained in:
Thomasedv 2021-04-17 20:11:16 +02:00
parent 86b5e38a76
commit b3c3d9bcb9

View file

@ -48,7 +48,7 @@ def create_vs_file(temp: Path, source, chunk_method):
'core.lsmas.LWLibavSource(r"{}", cachefile="{}").set_output()'
)
with open(load_script, "w+") as file:
with open(load_script, "w+", encoding='utf-8') as file:
file.write(script.format(Path(source).resolve(), cache_file))
cache_generation = f"vspipe -i {load_script.as_posix()} -i -"