Skip to content

Commit 143a8db

Browse files
author
BoboTiG
committed
Load os.path.isfile only on Linux
1 parent ad5aa80 commit 143a8db

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mss.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232

3333
from struct import pack
34-
from os.path import isfile
3534
from platform import system
3635
import sys
3736
import zlib
@@ -46,7 +45,7 @@ class ScreenshotError(Exception):
4645
from LaunchServices import kUTTypePNG
4746
elif system() == 'Linux':
4847
from os import environ
49-
from os.path import expanduser
48+
from os.path import expanduser, isfile
5049
import xml.etree.ElementTree as ET
5150
from ctypes.util import find_library
5251
from ctypes import byref, cast, cdll, POINTER, Structure, \

0 commit comments

Comments
 (0)