Skip to content

Commit

Permalink
Fix run_examples.py on Mac with PyQt5
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Aug 18, 2018
1 parent a737d26 commit 073f9d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/run_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,12 @@ def check_installed_packages():
}
for package in packages:
try:
importlib.import_module(package)
packages[package] = True
if package == "PyQt5":
# Strange issue on Mac, PyQt5 is an empty built-in module
from PyQt5 import QtGui
else:
importlib.import_module(package)
packages[package] = True
except ImportError:
packages[package] = False
packages["gi"] = check_gi_installed()
Expand Down

0 comments on commit 073f9d2

Please sign in to comment.