Snapcraft: Update PYTHONPATH in launcher

This commit is contained in:
Micah Lee 2022-10-09 07:37:44 -07:00
parent 3ac2053804
commit b80b476a12
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -49,6 +49,7 @@ parts:
cat > $SNAPCRAFT_PART_INSTALL/bin/launcher-setup << EOF
#!/bin/sh
export PATH=\$SNAP/bin:\$SNAP/usr/bin:\$SNAP/usr/local/bin:\$PATH
export PYTHONPATH=\$SNAP/lib/python3.8/site-packages:\$SNAP/usr/lib/python3/dist-packages
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$SNAP/usr/local/lib
ORIG_IFS=\$IFS
IFS=":"