Only change backslash on windows

This commit is contained in:
pdcxs 2019-01-14 10:38:54 +08:00
parent cb76ec1270
commit ac87738701

View file

@ -719,7 +719,10 @@ class Scene(Container):
)
with open(file_list, 'w') as fp:
for pf_path in partial_movie_files:
fp.write("file {}\n".format(pf_path).replace('\\', '/'))
if os.name == 'nt':
fp_path = fp_path.replace('\\', '/')
fp.write("file {}\n".format(pf_path))
movie_file_path = self.get_movie_file_path()
commands = [