From 60b54287e0532f64e994896d5dff871190552b63 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Tue, 4 Dec 2012 18:51:42 +0100 Subject: [PATCH] fix pyinstaller for gstreamer/pygame etc. --- kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py b/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py index cb0e78892..1b50685e5 100644 --- a/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py +++ b/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py @@ -15,8 +15,13 @@ else: chdir(dirname(sys.argv[0])) root = join(dirname(sys.argv[0]), root) + sys.path += [join(root, '_libs')] +if sys.platform == 'darwin': + sitepackages = join(root, '..', 'sitepackages') + sys.path += [sitepackages, join(sitepackages, 'gst-0.10')] + environ['GST_PLUGIN_PATH'] = join(root, '..', 'gst-plugins') environ['KIVY_DATA_DIR'] = join(root, 'data') environ['KIVY_EXTS_DIR'] = join(root, 'extensions')