Skip to content

Commit

Permalink
try to make it possible to make builds without pyobjc's AppKit
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12856 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 17, 2016
1 parent b194d6b commit 5f70a6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/platform/darwin/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ def get_window_frame_size(x, y, w, h):


def get_icc_info():
from AppKit import NSScreen #@UnresolvedImport
try:
from AppKit import NSScreen #@UnresolvedImport
except ImportError as e:
log("cannot get icc info without AppKit: %s", e)
return {}
ms = NSScreen.mainScreen()
info = do_get_screen_icc_info(ms)
screens = NSScreen.screens()
Expand Down

0 comments on commit 5f70a6d

Please sign in to comment.