-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix optional spacemouse import (#186)
* Update __init__.py * Update __init__.py * Update spacemouse.py
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
from .device import Device | ||
from .keyboard import Keyboard | ||
from .spacemouse import SpaceMouse | ||
try: | ||
from .spacemouse import SpaceMouse | ||
except ImportError: | ||
print("""Unable to load module hid, required to interface with SpaceMouse.\n | ||
Only Mac OS X is officially supported. Install the additional\n | ||
requirements with `pip install -r requirements-extra.txt`""") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters