From aed5317dd2306b9a473baa2619667000dc26bd7a Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Fri, 11 Oct 2024 21:41:03 +0200 Subject: [PATCH] ExportFrames: Get current or parent folder --- lvsfunc/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvsfunc/export.py b/lvsfunc/export.py index 549682c..2b6eca1 100644 --- a/lvsfunc/export.py +++ b/lvsfunc/export.py @@ -85,9 +85,9 @@ def _check_sfile(self, file: SPathLike, func: FuncExceptT) -> SPath: if not self._is_np and '%d' not in sfile.to_str(): raise CustomTypeError("Filename must include '%d' for frame number substitution!", func) - sfile.parent.mkdir(parents=True, exist_ok=True) + sfile.get_folder().mkdir(parents=True, exist_ok=True) - if list(sfile.parent.glob("*")): + if list(sfile.get_folder().glob("*")): input( f'ExportFrames: Files found in \"{sfile.parent}\". They may be overwritten. ' 'Press Enter to continue or Ctrl+C to abort...'