virtualenvwrapper functions unavailable in shell scripts

前端 未结 8 787
夕颜
夕颜 2020-12-01 03:44

So, once again, I make a nice python program which makes my life ever the more easier and saves a lot of time. Ofcourse, this involves a virtualenv, made with the mkvi

8条回答
  •  执笔经年
    2020-12-01 03:49

    I can't find the way to trigger the commands of virtualenvwrapper in shell. But this trick can help: assume your env. name is myenv, then put following lines at the beginning of scripts:

    ENV=myenv
    source $WORKON_HOME/$ENV/bin/activate
    

提交回复
热议问题