Add kxstudio dbus workaround to catia and claudia

This commit is contained in:
falkTX 2018-03-19 13:35:30 +01:00
parent f36bc4c73e
commit 7e98325af3
2 changed files with 20 additions and 2 deletions

View File

@ -31,7 +31,16 @@ try:
from dbus.mainloop.pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
kxstudioWorkaround = "/opt/kxstudio/python3/dist-packages/dbus/mainloop"
if os.path.exists(kxstudioWorkaround):
try:
sys.path.insert(0, kxstudioWorkaround)
from pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
else:
haveDBus = False
# ------------------------------------------------------------------------------------------------------------
# Try Import OpenGL

View File

@ -51,7 +51,16 @@ try:
from dbus.mainloop.pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
kxstudioWorkaround = "/opt/kxstudio/python3/dist-packages/dbus/mainloop"
if os.path.exists(kxstudioWorkaround):
try:
sys.path.insert(0, kxstudioWorkaround)
from pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
else:
haveDBus = False
# ------------------------------------------------------------------------------------------------------------
# Try Import OpenGL