break install-time import dep

This commit is contained in:
Oskar Weigl
2018-06-21 15:39:10 -07:00
parent aa32837500
commit 0ff88ea97b
+8 -3
View File
@@ -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