Skip to content

Commit aed5317

Browse files
ExportFrames: Get current or parent folder
1 parent 7db1e03 commit aed5317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lvsfunc/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def _check_sfile(self, file: SPathLike, func: FuncExceptT) -> SPath:
8585
if not self._is_np and '%d' not in sfile.to_str():
8686
raise CustomTypeError("Filename must include '%d' for frame number substitution!", func)
8787

88-
sfile.parent.mkdir(parents=True, exist_ok=True)
88+
sfile.get_folder().mkdir(parents=True, exist_ok=True)
8989

90-
if list(sfile.parent.glob("*")):
90+
if list(sfile.get_folder().glob("*")):
9191
input(
9292
f'ExportFrames: Files found in \"{sfile.parent}\". They may be overwritten. '
9393
'Press Enter to continue or Ctrl+C to abort...'

0 commit comments

Comments
 (0)