Skip to content

Commit

Permalink
ExportFrames: Get current or parent folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 11, 2024
1 parent 7db1e03 commit aed5317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvsfunc/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...'
Expand Down

0 comments on commit aed5317

Please sign in to comment.