Merge branch 'fix-qtwebengineprocess-path' into 'master'

Fix the path to QtWebEngineProcess on macOS

See merge request openlp/openlp!98
This commit is contained in:
Tomas Groth 2019-12-10 16:57:30 +00:00
commit 97ba02d1f1
1 changed files with 7 additions and 1 deletions

View File

@ -26,8 +26,9 @@ import faulthandler
import logging
import multiprocessing
import sys
import os
# from OpenGL import GL
# from OpenGL import GL # noqa
from openlp.core.app import main
from openlp.core.common import is_macosx, is_win
@ -78,6 +79,11 @@ def start():
# to avoid any potential conflicts.
if is_macosx():
sys.argv = [x for x in sys.argv if not x.startswith('-psn')]
if getattr(sys, 'frozen', False):
os.environ['QTWEBENGINEPROCESS_PATH'] = os.path.normpath(os.path.join(
sys._MEIPASS, '..', 'MacOS', 'PyQt5', 'Qt', 'lib', 'QtWebEngineCore.framework',
'Versions', '5', 'Helpers', 'QtWebEngineProcess.app', 'Contents', 'MacOS', 'QtWebEngineProcess'
))
main()