Skip to content

Commit a02ef55

Browse files
committed
os support: macOS
1 parent 9cc0f62 commit a02ef55

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

readchar/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from sys import platform
77

88

9-
if platform.startswith("linux"):
9+
if (
10+
platform.startswith("linux")
11+
or platform == "darwin"
12+
):
1013
from ._posix_read import readchar, readkey
1114
elif platform in ("win32", "cygwin"):
1215
from ._win_read import readchar, readkey

readchar/key.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
from . import platform
44

5-
if platform.startswith("linux"):
5+
if (
6+
platform.startswith("linux")
7+
or platform == "darwin"
8+
):
69
from ._posix_key import *
710
elif platform in ("win32", "cygwin"):
811
from ._win_key import *

0 commit comments

Comments
 (0)