mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 20:22:22 +01:00
16 lines
256 B
Bash
16 lines
256 B
Bash
#!/bin/bash
|
|
pathname=$_
|
|
|
|
if [[ "$pathname" = "$0" ]]; then
|
|
echo "Remember: you need to run me as 'source sourceme', not execute it!"
|
|
return
|
|
fi
|
|
|
|
if [ -d venv ]; then
|
|
source venv/bin/activate
|
|
else
|
|
pyvenv venv
|
|
source venv/bin/activate
|
|
fi
|
|
|