Skip to content

Commit

Permalink
refactor os.makedirs call
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Jul 16, 2024
1 parent 4d47fc3 commit a8b539d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def process(self, instance):
["{}/{}".format(staging_dir, f) for f in frames]
)

if not os.path.exists(staging_dir):
os.makedirs(staging_dir)
os.makedirs(staging_dir, exist_ok=True)

anatomy = instance.context.data["anatomy"]
last_published_and_frames = collect_frames(last_published)
Expand Down

0 comments on commit a8b539d

Please sign in to comment.