Skip to content

Commit

Permalink
Fix missing import, protocol <-> path error in 'screencapture'
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Oct 21, 2018
1 parent c8cf92a commit a00174f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plyer/platforms/macosx/screenshot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import subprocess
from os.path import join
from plyer.facades import Screenshot
from plyer.utils import whereis_exe
from plyer.platforms.macosx.storagepath import OSXStoragePath
Expand All @@ -7,7 +8,7 @@
class OSXScreenshot(Screenshot):
def __init__(self, file_path=None):
default_path = join(
OSXStoragePath().get_pictures_dir().encode('utf-8'),
OSXStoragePath().get_pictures_dir().replace('file://', ''),
'screenshot.png'
)
super(OSXScreenshot, self).__init__(file_path or default_path)
Expand Down

0 comments on commit a00174f

Please sign in to comment.