alexlarsson / gnome-sdk-images

5 stars 1 forks source link

PYTHONPATH and GST_PLUGIN_PATH should point to the /app/ prefix #8

Closed thiblahute closed 8 years ago

thiblahute commented 8 years ago

In order to make it simpler for application developpers to use the bundle, we should make sure that important env variables are properly set by default, at least those two should be set:

GST_PLUGIN_PATH=/app/lib/gstreamer-1.0
PYTHONPATH=/app/lib/python3.3/site-packages
alexlarsson commented 8 years ago

Pythonpath should not be needed, as we ship some magic config thing: $ python3 -c "import sys; print(sys.path)"

['', '/usr/lib/python33.zip', '/app/lib/python3.3/site-packages', '/usr/lib/python3.3', '/usr/lib/python3.3/plat-linux', '/usr/lib/python3.3/lib-dynload', '/usr/lib/python3.3/site-packages']
alexlarsson commented 8 years ago

In fact, PYTHONPATH is problematic as it is read by both python2 and python3

alexlarsson commented 8 years ago

Latest version sets GST_PLUGIN_PATH