mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-19 02:43:27 +08:00
break install-time import dep
This commit is contained in:
@@ -5,9 +5,14 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(
|
||||
os.path.dirname(os.path.realpath(__file__)))),
|
||||
"Firmware", "fibre", "python"))
|
||||
|
||||
import fibre
|
||||
find_any = fibre.find_any
|
||||
find_all = fibre.find_all
|
||||
# Syntactic sugar to make usage more intuative.
|
||||
# Try/pass used to break install-time dep issues
|
||||
try:
|
||||
import fibre
|
||||
find_any = fibre.find_any
|
||||
find_all = fibre.find_all
|
||||
except:
|
||||
pass
|
||||
|
||||
# Standard convention is to add a __version__ attribute to the package
|
||||
from .version import get_version_str
|
||||
|
||||
Reference in New Issue
Block a user