Skip to content

Commit

Permalink
Merge pull request #2169 from oliver-sanders/display-to-gtk-import
Browse files Browse the repository at this point in the history
Abort widget check if gtk 2.0 not available.
  • Loading branch information
sadielbartholomew authored Apr 9, 2018
2 parents daa4727 + a42c8f0 commit 8faf7a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/python/rose/metadata_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ def _check_widget(value, module_files=None, meta_dir=None):
if not module_files:
return
widget_name = value.split()[0]
try:
import pygtk
pygtk.require('2.0')
except ImportError:
# gtk 2.0 not available, skip check.
return
try:
widget = rose.resource.import_object(
widget_name, module_files, _import_err_handler)
Expand Down

0 comments on commit 8faf7a9

Please sign in to comment.