Skip to content

Commit

Permalink
feat: ensure library can be loaded on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jan 10, 2024
1 parent 3f4a112 commit c05d9bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bluetooth_auto_recovery/recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@

try:
from fcntl import ioctl

import pyric.utils.rfkill as rfkill
except ImportError:
ioctl = None # type: ignore
rfkill = None

Check warning on line 18 in src/bluetooth_auto_recovery/recover.py

View check run for this annotation

Codecov / codecov/patch

src/bluetooth_auto_recovery/recover.py#L16-L18

Added lines #L16 - L18 were not covered by tests

from typing import Any, AsyncIterator, cast

import pyric.net.wireless.rfkill_h as rfkh
import pyric.utils.rfkill as rfkill
from bluetooth_adapters import get_adapters_from_hci
from btsocket import btmgmt_protocol, btmgmt_socket
from btsocket.btmgmt_socket import AF_BLUETOOTH, BTPROTO_HCI
Expand Down

0 comments on commit c05d9bf

Please sign in to comment.