Replace backslash to slash only on windows platform

This commit is contained in:
pdcxs
2019-01-14 10:45:36 +08:00
parent ac87738701
commit 27f1dfe75b

View File

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