forked from openlp/openlp
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:
commit
97ba02d1f1
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user