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
Post a Comment