News for hackers. Stuff that matters.
Re:My Python Development Environment, 2018 Edition by unpythonic on Thursday February 22, 2018 @02:28PM (#16440602)
If you want to not infect your current shell with the new environment, you can just run it in a subshell by using parentheses:

    $ ( . /full_path/env/bin/activate && python myapp.py --workers=3 )
This works for anything that you'd like a temporary shell for:

    $ pwd
    /home/me

    $ ( cd /tmp; pwd )
    /tmp

    $ pwd
    /home/me

There are no comments on this comment yet.