Skip to content

Commit

Permalink
Added logger messages
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Mar 30, 2015
1 parent 6d65210 commit 0768aba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion glue_exp/importers/webcam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@

def setup():

from .qt_widget import QtWebcamImporter
from glue.logger import logger
try:
import cv2
except ImportError:
logger.info("Could not load webcam importer plugin, since OpenCV is required")
return

from glue.config import importer
from .qt_widget import QtWebcamImporter

@importer("Import from webcam")
def webcam_importer():
wi = QtWebcamImporter()
wi.exec_()
return wi.data

logger.info("Loaded webcam importer plugin")

0 comments on commit 0768aba

Please sign in to comment.