Skip to content

Instantly share code, notes, and snippets.

@pablocarrillo
Created May 28, 2014 22:52
Show Gist options
  • Save pablocarrillo/8b465715492a1ec97637 to your computer and use it in GitHub Desktop.
Save pablocarrillo/8b465715492a1ec97637 to your computer and use it in GitHub Desktop.
Bash command to get correct path for autoenv
#!/bin/bash
#You can run this gist inside the folder that holds the venv folder or paste the following in a Terminal
#This file assume your virtual environment is under the folder venv
DIRECTORY=$(pwd) ; echo source $DIRECTORY/venv/bin/activate > .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment