Skip to content

Instantly share code, notes, and snippets.

@csinchok
Last active July 8, 2022 17:29
Show Gist options
  • Save csinchok/9714005 to your computer and use it in GitHub Desktop.
Save csinchok/9714005 to your computer and use it in GitHub Desktop.
Make a disposable python virtualenv
function throwaway {
THROWAWAY_DIR=$(mktemp -d -t virtualenv);
cd $THROWAWAY_DIR;
virtualenv .;
source bin/activate;
trap "rm -r $THROWAWAY_DIR" EXIT
}
export -f throwaway
@cupdike
Copy link

cupdike commented Jul 8, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment