mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixup shebangs in the venv scripts so they at least work if you're in the same directory.
This commit is contained in:
parent
3d7ecd16aa
commit
d4348bd726
@ -85,6 +85,10 @@ _create_python_env() {
|
||||
done
|
||||
IFS=${OLD_IFS}
|
||||
|
||||
# Fixup shebangs
|
||||
cd "${BUNDLE_DIR}/Contents/Frameworks/Python.framework/Versions/Current/bin"
|
||||
grep -RiIl 'mac-build' * | xargs sed -i '' 's/\/.*\/python3\./.\/python3./g'
|
||||
|
||||
# Remove some things we don't need
|
||||
cd "${BUNDLE_DIR}/Contents/Frameworks/Python.framework"
|
||||
find . -name test -type d -print0 | xargs -0 rm -rf
|
||||
|
Loading…
Reference in New Issue
Block a user