Renamed python virtualenv directory
This commit is contained in:
parent
9136dbd4e2
commit
6a8abf30d7
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue