Get virtualenv's bin folder path from script

前端 未结 3 496
情深已故
情深已故 2020-12-25 10:51

I\'m using virtualenvwrapper with a django project that has a management task that automatically writes some config files, so the user just has to

./manage.p         


        
3条回答
  •  北海茫月
    2020-12-25 11:36

    The path to the virtual env is in the environment variable VIRTUAL_ENV

    echo $VIRTUAL_ENV
    

提交回复
热议问题