Skip to content

Commit bfd63ef

Browse files
committed
Fixed imports and messages
1 parent af33ab0 commit bfd63ef

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

servercom/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77
from ._version import *
88
from sys import implementation as _implementation
99

10+
# Generic time tools:
11+
from . import timetools
1012

1113
# Check the implementation to use
1214
if _implementation.name == 'circuitpython':
1315
# Use the CircuitPython version:
1416
from .implementations.circuitpy import *
17+
18+
# Import IR stuff:
19+
from . import timeout
20+
from . import irrx
21+
1522
elif _implementation.name == 'cpython':
1623
# Use the CPython version:
1724
from .implementations.cpy import *
@@ -28,5 +35,7 @@
2835
raise NotImplementedError(
2936
f"This library is not supported for the {_implementation.name} "
3037
"implementation of Python.\n"
31-
"We do, however, support CircuitPython and CPython."
38+
"We do, however, support CircuitPython and CPython.\n"
39+
"If you would like to see support for this implementation, please "
40+
"open an issue at https://github.com/Windham-High-School/CubeServer-api-python/issues/new"
3241
)

0 commit comments

Comments
 (0)