mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-08-30 12:39:43 +00:00
Compare commits
No commits in common. "23ce7b8c16a488a1baf1013a59b170c1dff4f1ff" and "c8bcaea1e8c082d391325834e286bb6b30f25201" have entirely different histories.
23ce7b8c16
...
c8bcaea1e8
@ -7,9 +7,9 @@
|
||||
from platform import mac_ver
|
||||
from sys import version_info
|
||||
|
||||
# NOTE: version of pyobjc only supports python >= 3.6 and 10.9+
|
||||
macos_ver = tuple(int(part) for part in mac_ver()[0].split("."))
|
||||
if version_info >= (3, 6) and macos_ver >= (10, 9):
|
||||
# If macOS is 11.0 or newer try to use the pyobjc version to get around #51
|
||||
# NOTE: pyobjc only supports python >= 3.6
|
||||
if version_info >= (3, 6) and int(mac_ver()[0].split(".", 1)[0]) >= 11:
|
||||
try:
|
||||
from .plat_osx_pyobjc import send2trash
|
||||
except ImportError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user