mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
085fa28be7
git-svn-id: http://svn.pyinstaller.org/trunk@614 8dd32b29-ccff-0310-8a9a-9233e24343b1
11 lines
385 B
Python
11 lines
385 B
Python
# Qt4 plugins are bundled as data files (see hooks/hook-PyQt4*),
|
|
# within a "qt4_plugins" directory.
|
|
# We add a runtime hook to tell Qt4 where to find them,
|
|
# through an environment variable.
|
|
import os
|
|
d = "qt4_plugins"
|
|
if "_MEIPASS2" in os.environ:
|
|
d = os.path.join(os.environ["_MEIPASS2"], d)
|
|
os.environ["QT_PLUGIN_PATH"] = d + os.pathsep + os.environ.get("QT_PLUGIN_PATH", "")
|
|
|