Renamed python virtualenv directory
This commit is contained in:
parent
9136dbd4e2
commit
6a8abf30d7
|
@ -15,12 +15,12 @@ print_error() {
|
|||
}
|
||||
|
||||
# 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"
|
||||
fi
|
||||
|
||||
# Activate python vitualenv to install librairies
|
||||
source .deltabotenv/bin/activate
|
||||
source .compteur_electrique_env/bin/activate
|
||||
|
||||
# Install librairies
|
||||
if ! pip install discord.py; then
|
||||
|
@ -38,10 +38,10 @@ deactivate
|
|||
# Create launch file
|
||||
cat > launch.sh << 'EOF'
|
||||
# Activate python vitualenv to install librairies
|
||||
source .deltabotenv/bin/activate
|
||||
source .compteur_electrique_env/bin/activate
|
||||
|
||||
# Launch bot
|
||||
.deltabotenv/bin/python3 src/main.py
|
||||
.compteur_electrique_env/bin/python3 src/main.py
|
||||
EOF
|
||||
chmod +x launch.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue