How to activate virtualenv within grunt shell or other alternatives?

I’ve tried grunt-shell to execute virtualenv like:



    shell: { activateVirtualenv: { command: '. venv/bin/activate' } }



but it didn’t work.

I guess it’s because the grunt-shell runs tasks as an another child process, consequently not exporting virtualenv variables to the shell where I ran the grunt-shell task but exports variables to the child process of it.

Is there any other way to activate the virtualenv with grunt tasks?

Source: shell

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.