fix pyinstaller for gstreamer/pygame etc.

This commit is contained in:
Mathieu Virbel 2012-12-04 18:51:42 +01:00
parent 09c2f52925
commit 60b54287e0
1 changed files with 5 additions and 0 deletions

View File

@ -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')