Skip to content

Commit

Permalink
Fixed another small issue with an empty screenshot directory.
Browse files Browse the repository at this point in the history
Made sure to check in notification.wav with the lower volume
  • Loading branch information
BradfordBach committed May 25, 2019
1 parent 3457536 commit 8156dbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NMS_Locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def get_latest_screenshot():
latest_save = None

# if latest file is already cropped it means we've already processed it, so skip it
if os.path.isfile("cropped" + os.sep + os.path.splitext(os.path.basename(file))[0] + "_cropped.png"):
latest_save = None
if latest_save:
if os.path.isfile("cropped" + os.sep + os.path.splitext(os.path.basename(latest_save))[0] + "_cropped.png"):
latest_save = None

return latest_save

Expand Down
Binary file modified notification.wav
Binary file not shown.

0 comments on commit 8156dbc

Please sign in to comment.