Fix --no-gui PySide dependency issue on non-Windows OS (#653)
This commit is contained in:
parent
b8de12f40e
commit
2dd3875a2a
@ -9,7 +9,7 @@ if "QT_PREFERRED_BINDING" not in os.environ:
|
|||||||
if not isWindowsConsole():
|
if not isWindowsConsole():
|
||||||
try:
|
try:
|
||||||
from syncplay.ui.gui import MainWindow as GraphicalUI
|
from syncplay.ui.gui import MainWindow as GraphicalUI
|
||||||
except ImportError:
|
except (ImportError, AttributeError) as e:
|
||||||
pass
|
pass
|
||||||
from syncplay.ui.consoleUI import ConsoleUI
|
from syncplay.ui.consoleUI import ConsoleUI
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user