Get virtualenv's bin folder path from script

前端 未结 3 497
情深已故
情深已故 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:34

    You can use fabric to do such things from python

    >>> from fabric.api import local
    >>> local('which celery')
    

提交回复
热议问题