fix filepath for windows
This commit is contained in:
parent
32ebd9191c
commit
654eb7afd5
2
run.py
2
run.py
@ -90,6 +90,8 @@ def start():
|
|||||||
return
|
return
|
||||||
video_name = target_path.split(sep)[-1].split(".")[0]
|
video_name = target_path.split(sep)[-1].split(".")[0]
|
||||||
output_dir = target_path.replace(target_path.split(sep)[-1], "") + sep + video_name
|
output_dir = target_path.replace(target_path.split(sep)[-1], "") + sep + video_name
|
||||||
|
if sep = "\\":
|
||||||
|
output_dir = output_dir.lstrip("\\", "")
|
||||||
Path(output_dir).mkdir(exist_ok=True)
|
Path(output_dir).mkdir(exist_ok=True)
|
||||||
fps = detect_fps(target_path)
|
fps = detect_fps(target_path)
|
||||||
if not args['keep_fps'] and fps > 30:
|
if not args['keep_fps'] and fps > 30:
|
||||||
|
Loading…
Reference in New Issue
Block a user