Renamed python virtualenv directory

This commit is contained in:
Ulysse Cura 2025-10-07 20:38:35 +02:00
parent 9136dbd4e2
commit 6a8abf30d7
1 changed files with 4 additions and 4 deletions

View File

@ -15,12 +15,12 @@ print_error() {
} }
# Creating virtualenv # Creating virtualenv
if ! python3 -m venv .deltabotenv; then if ! python3 -m venv .compteur_electrique_env; then
print_error "Python3 returnded a non-zero error code during virtualenv creation" print_error "Python3 returnded a non-zero error code during virtualenv creation"
fi fi
# Activate python vitualenv to install librairies # Activate python vitualenv to install librairies
source .deltabotenv/bin/activate source .compteur_electrique_env/bin/activate
# Install librairies # Install librairies
if ! pip install discord.py; then if ! pip install discord.py; then
@ -38,10 +38,10 @@ deactivate
# Create launch file # Create launch file
cat > launch.sh << 'EOF' cat > launch.sh << 'EOF'
# Activate python vitualenv to install librairies # Activate python vitualenv to install librairies
source .deltabotenv/bin/activate source .compteur_electrique_env/bin/activate
# Launch bot # Launch bot
.deltabotenv/bin/python3 src/main.py .compteur_electrique_env/bin/python3 src/main.py
EOF EOF
chmod +x launch.sh chmod +x launch.sh