gui: error message if PyQt5 isn’t installed
This commit is contained in:
@@ -5,7 +5,13 @@ import sys
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from PyQt5 import QtWidgets, QtGui, QtCore
|
try:
|
||||||
|
from PyQt5 import QtWidgets, QtGui, QtCore
|
||||||
|
except:
|
||||||
|
print("alacritty-config-gui depends on PyQt5. I couldn’t locate PyQt5.")
|
||||||
|
print("Sorry about that.")
|
||||||
|
print("\nRunning `pip3 install PyQt5` could help.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
ALACRITTY_CONFIG = os.path.expanduser("~/.config/alacritty/alacritty.yml")
|
ALACRITTY_CONFIG = os.path.expanduser("~/.config/alacritty/alacritty.yml")
|
||||||
|
Reference in New Issue
Block a user