osx: avoid to use gst-plugin-scanner, doesnt work everywhere.

This commit is contained in:
Mathieu Virbel 2012-12-05 15:03:58 +01:00
parent 5a2dc74927
commit 97a0d60ea6
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,8 @@ export PYTHONPATH=${SCRIPT_PATH}/kivy:${SCRIPT_PATH}/lib/sitepackages:$PYTHONPAT
export DYLD_FALLBACK_LIBRARY_PATH=${SCRIPT_PATH}/lib:$DYLD_FALLBACK_LIBRARY_PATH
export LD_PRELOAD_PATH=${SCRIPT_PATH}/lib:$LD_PRELOAD_PATH
export GST_PLUGIN_PATH=${SCRIPT_PATH}/lib/gst-plugins:$GST_PLUGIN_PATH
export GST_PLUGIN_SCANNER=${SCRIPT_PATH}/lib/bin/gst-plugin-scanner
export GST_REGISTRY_FORK="no"
# It has to be -S or pygame's egg will do some funny site magic and break eventually
# That'd mean however that other libraries can't be found anymore. So if the user has

View File

@ -1,5 +1,5 @@
from os.path import join, dirname
from os import environ, chdir
from os import environ, chdir, putenv
import sys
root = 'kivy_install'
@ -21,6 +21,7 @@ sys.path += [join(root, '_libs')]
if sys.platform == 'darwin':
sitepackages = join(root, '..', 'sitepackages')
sys.path += [sitepackages, join(sitepackages, 'gst-0.10')]
putenv('GST_REGISTRY_FORK', 'no')
environ['GST_PLUGIN_PATH'] = join(root, '..', 'gst-plugins')
environ['KIVY_DATA_DIR'] = join(root, 'data')