Inside every virtualenv of mine, I add a directory named run, this is where i put running pid files and logs, etc. I noticed that postmkvirtualenv can help me make sure this always happens when I create a new virtualenv but im not sure how to implement. I would say mkdir $VIRTUAL_HOME/$VIRTUALENV/run but $VIRTUALENV is not available… I know it’s possible, just not sure how.
Inside every virtualenv of mine, I add a directory named run , this is
Share
You probably want to use the
$VIRTUAL_ENVvariable instead.Example
postmkvirtalenv:The variable is quoted to protect against spaces in the path.