Where to define the postactivate hook with virtualenvwrapper-win?

微笑、不失礼 提交于 2019-12-05 06:54:58

I actually solved it myself. You can put any environment variables in the activate.bat file in the Scripts folder of your virtualenv.

Dan Cohen

If you have already defined your VIRTUALENVWRAPPER_HOOK_DIR variable, just add this line to workon.bat.

call "%VIRTUALENVWRAPPER_HOOK_DIR%\postactivate.bat"

Just make sure you put it above :END

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!