Skip to content

Commit

Permalink
Don't create useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Nov 20, 2019
1 parent 8286345 commit 62cb452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def GenerateThumbnail(file_path, thumb_path, thumbnail_frame, width, height, mas
pass

# Create thumbnail folder (if needed)
parent_path, file_name = os.path.split(thumb_path)
parent_path = os.path.dirname(thumb_path)
if not os.path.exists(parent_path):
os.mkdir(parent_path)

Expand Down

0 comments on commit 62cb452

Please sign in to comment.