Skip to content

Commit

Permalink
Merge pull request #266 from Alghost/fix_macos_mojave
Browse files Browse the repository at this point in the history
Suggest: remove first dot of tmp filename on MacOS
  • Loading branch information
asweigart committed Dec 10, 2018
2 parents 419c7bb + 979d859 commit ec2ed56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyautogui/screenshotUtil.py
Expand Up @@ -130,7 +130,7 @@ def _screenshot_win32(imageFilename=None):

def _screenshot_osx(imageFilename=None):
if imageFilename is None:
tmpFilename = '.screenshot%s.png' % (datetime.datetime.now().strftime('%Y-%m%d_%H-%M-%S-%f'))
tmpFilename = 'screenshot%s.png' % (datetime.datetime.now().strftime('%Y-%m%d_%H-%M-%S-%f'))
else:
tmpFilename = imageFilename
subprocess.call(['screencapture', '-x', tmpFilename])
Expand Down

0 comments on commit ec2ed56

Please sign in to comment.