From fbf90d7f5f8ae596ea987626b420e6dae5ebe18d Mon Sep 17 00:00:00 2001 From: lugo Date: Mon, 28 Nov 2022 08:46:39 +0100 Subject: [PATCH] directory bug --- movie_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/movie_util.py b/movie_util.py index 4e50799..94aa223 100644 --- a/movie_util.py +++ b/movie_util.py @@ -68,7 +68,8 @@ class MovieSaver(): silent_ffmpeg: bool Surpress the output from ffmpeg. """ - assert os.path.isdir(os.path.split(fp_out)[0]), "Directory does not exist!" + if len(os.path.split(fp_out)[0]) > 0: + assert os.path.isdir(os.path.split(fp_out)[0]), "Directory does not exist!" self.fp_out = fp_out self.fps = fps