Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Orange/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@

AnyQt.importhooks.install_backport_hook('pyqt4')
del AnyQt


# A hack that prevents segmentation fault with Nvidia drives on Linux if Qt's browser window
# is shown (seen in https://github.com/spyder-ide/spyder/pull/7029/files)
try:
import ctypes
ctypes.CDLL("libGL.so.1", mode=ctypes.RTLD_GLOBAL)
except: # pylint: disable=bare-except
pass
finally:
del ctypes