Skip to content
Snippets Groups Projects
Commit 60554ba8 authored by mhocke's avatar mhocke
Browse files

Automatically add .mp4 extension to video path

parent 16e029d0
No related branches found
No related tags found
1 merge request!55Automatically add .mp4 extension to video path
Pipeline #67450 failed
......@@ -1471,6 +1471,8 @@ class File(h5py.File):
)
if video_path is not None:
if not video_path.suffix:
video_path = video_path.parent / f"{video_path.stem}.mp4"
if video_path.exists():
if input(f"Video {str(video_path)} exists. Overwrite? (y/n)") == "y":
video_path.unlink()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment