Ich habe eine Verzeichnisstruktur wie:
Code: Select all
.env
bin
activate
...other virtualenv files...
src
shell.sh
...my code...
Code: Select all
user@localhost:src$ . ../.env/bin/activate
(.env)user@localhost:src$
Code: Select all
user@localhost:src$ cat shell.sh
#!/bin/bash
. ../.env/bin/activate
user@localhost:src$ ./shell.sh
user@localhost:src$