Skip to content

Commit

Permalink
Merge pull request NVIDIA-AI-IOT#367 from bezineb5/patch-1
Browse files Browse the repository at this point in the history
Missing 'os' import
  • Loading branch information
jaybdub authored Jan 17, 2021
2 parents ef97ba9 + 87b6928 commit eb9eb05
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions jetbot/camera/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
try:
DEFAULT_CAMERA = os.environ['JETBOT_DEFAULT_CAMERA']
except:
DEFAULT_CAMERA = 'opencv_gst_camera'
import os

DEFAULT_CAMERA = os.environ.get('JETBOT_DEFAULT_CAMERA', 'opencv_gst_camera')

if DEFAULT_CAMERA == 'zmq_camera':
from .zmq_camera import ZmqCamera
Camera = ZmqCamera
else:
from .opencv_gst_camera import OpenCvGstCamera
Camera = OpenCvGstCamera
Camera = OpenCvGstCamera

0 comments on commit eb9eb05

Please sign in to comment.