better cli path handling
This commit is contained in:
parent
94e26909aa
commit
3b9d94b779
4
run.py
4
run.py
@ -201,9 +201,7 @@ def start():
|
||||
quit()
|
||||
video_name_full = target_path.split("/")[-1]
|
||||
video_name = os.path.splitext(video_name_full)[0]
|
||||
output_dir = os.path.dirname(target_path) + "/" + video_name
|
||||
if output_dir.startswith("/"):
|
||||
output_dir = "." + output_dir
|
||||
output_dir = os.path.dirname(target_path) + "/" + video_name if os.path.dirname(target_path) else video_name
|
||||
Path(output_dir).mkdir(exist_ok=True)
|
||||
status("detecting video's FPS...")
|
||||
fps, exact_fps = detect_fps(target_path)
|
||||
|
Loading…
Reference in New Issue
Block a user