better windows detection

This commit is contained in:
Somdev Sangwan 2023-05-29 20:37:36 +05:30
parent 6c98f67c1c
commit 036ef161dc

2
run.py
View File

@ -36,7 +36,7 @@ for name, value in vars(parser.parse_args()).items():
args[name] = value args[name] = value
sep = "/" # used for filepaths e.g. /root/path/output.mp4 sep = "/" # used for filepaths e.g. /root/path/output.mp4
if os.name == 'nt': if sys.platform.startswith("win") or os.name == 'nt':
sep = "\\" # for windows sep = "\\" # for windows
def start_processing(): def start_processing():