Created
September 7, 2013 02:34
-
-
Save netmarkjp/6472307 to your computer and use it in GitHub Desktop.
Revisions
-
netmarkjp created this gist
Sep 7, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/sh # from http://d.hatena.ne.jp/heavenshell/20121122/1353597292 VENV=$1 echo $VENV if [ -z $VENV ]; then echo "usage: runinenv [virtualenv_path] CMDS" exit 1 fi . ${VENV}/bin/activate shift 1 echo "Executing $@ in ${VENV}" exec "$@"