openwsn-berkeley / opentestbed

Lean OpenWSN/OpenMote testbed
5 stars 10 forks source link

Conditional python package imports #86

Closed bozidars27 closed 5 years ago

bozidars27 commented 6 years ago

Importing packages Image, ImageFont, ImageDraw and pygame is unnecessary when running otbox.py on IoT-LAB

changtengfei commented 5 years ago

Done. By using try: exception when importing the Image related package. An importError will be thrown out if it failed.