mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Get rid of QT_PLUGIN_PATH on macOS
This commit is contained in:
parent
e00835e5c6
commit
58f5577a13
@ -39,7 +39,6 @@ QT_FRAMEWORKS = [x.replace('5', '') for x in QT_DLLS]
|
||||
ENV = dict(
|
||||
FONTCONFIG_PATH='@executable_path/../Resources/fonts',
|
||||
FONTCONFIG_FILE='@executable_path/../Resources/fonts/fonts.conf',
|
||||
QT_PLUGIN_PATH='@executable_path/../MacOS/qt-plugins',
|
||||
PYTHONIOENCODING='UTF-8',
|
||||
SSL_CERT_FILE='@executable_path/../Resources/resources/mozilla-ca-certs.pem',
|
||||
)
|
||||
@ -317,7 +316,7 @@ class Freeze(object):
|
||||
for f in QT_FRAMEWORKS:
|
||||
self.add_qt_framework(f)
|
||||
pdir = join(QT_PREFIX, 'plugins')
|
||||
ddir = join(self.contents_dir, 'MacOS', 'qt-plugins')
|
||||
ddir = join(self.contents_dir, 'PlugIns')
|
||||
os.mkdir(ddir)
|
||||
for x in QT_PLUGINS:
|
||||
shutil.copytree(join(pdir, x), join(ddir, x))
|
||||
|
@ -1115,7 +1115,7 @@ def sanitize_env_vars():
|
||||
env_vars = {k:None for k in 'QT_PLUGIN_PATH'.split()}
|
||||
elif isosx:
|
||||
env_vars = {k:None for k in (
|
||||
'FONTCONFIG_FILE FONTCONFIG_PATH QT_PLUGIN_PATH SSL_CERT_FILE').split()}
|
||||
'FONTCONFIG_FILE FONTCONFIG_PATH SSL_CERT_FILE').split()}
|
||||
else:
|
||||
env_vars = {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user