bash - Creating a directory inside a virtualenv via virtualenvwrapper's postmkvirtualenv -


inside every virtualenv of mine, add directory named run, put running pid files , logs, etc. noticed postmkvirtualenv can me make sure happens when create new virtualenv im not sure how implement. mkdir $virtual_home/$virtualenv/run $virtualenv not available... know it's possible, not sure how.

you want use $virtual_env variable instead.

example postmkvirtalenv:

#!/bin/bash mkdir "${virtual_env}"/run 

the variable quoted protect against spaces in path.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -