Commits

Anonymous committed f94fa0a

Fix pythonpath on POL

Comments (0)

Files changed (1)

var/vabs/playonlinux/src/playonlinux.SlackBuild

 # For playonlinux
 cat > $PKG/usr/bin/$NAME << EFO
 #!/bin/bash
-sitepkgs=$(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
-export PYTHONPATH=$PYTHONPATH:$sitepkgs/wx-2.8-gtk2-unicode
+arch=$(uname -m)
+if [ "$arch" == "i?86" ]; then
+	export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode
+elif [ "$arch" == "x86_64" ]; then
+	export PYTHONPATH=$PYTHONPATH:/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode
+fi
 /usr/share/$NAME/$NAME \"\$@\"
 
 EFO