mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-14 09:01:59 -05:00
Fixup shebangs in the venv scripts so they at least work if you're in the same directory.
This commit is contained in:
1 parent
3d7ecd16aa
commit
d4348bd726
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user