mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 01:40:21 +08:00
12 lines
297 B
Bash
Executable File
12 lines
297 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Source .venv
|
|
. .venv/bin/activate
|
|
|
|
# Fix for actions LD_LIBRARY_PATH env
|
|
touch ld_fix.sh
|
|
PYTHON_PATH=$(which python3)
|
|
PYTHON_DIR=$(dirname $PYTHON_PATH)
|
|
echo "export LD_LIBRARY_PATH=$PYTHON_DIR/../lib" >> ld_fix.sh
|
|
echo "export PATH=$PYTHON_DIR:\$PATH" >> ld_fix.sh
|
|
chmod +x ld_fix.sh |