Skip to content
This repository has been archived by the owner on Jun 1, 2018. It is now read-only.

Commit

Permalink
prevent import error when libvlc.dll is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
gpiantoni committed Apr 21, 2016
1 parent df58804 commit 42a3208
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions phypno/widgets/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
QWidget,
)

import phypno.utils.ext.vlc as vlc # make relative
try:
import phypno.utils.ext.vlc as vlc # make relative
except:
vlc = False

from .settings import Config

lg = getLogger(__name__)
Expand Down Expand Up @@ -64,7 +68,8 @@ def __init__(self, parent):

self.idx_button = None

self.create_video()
if vlc:
self.create_video()

def create_video(self):
"""Create video widget."""
Expand Down

0 comments on commit 42a3208

Please sign in to comment.