Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65820 > unrolled thread
| Started by | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| First post | 2014-02-10 15:46 +0100 |
| Last post | 2014-02-10 08:01 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Re: Using virtualenv to bypass sudoer issues Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-02-10 15:46 +0100
Re: Using virtualenv to bypass sudoer issues Asaf Las <roegltd@gmail.com> - 2014-02-10 08:01 -0800
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| Date | 2014-02-10 15:46 +0100 |
| Subject | Re: Using virtualenv to bypass sudoer issues |
| Message-ID | <mailman.6624.1392043593.18130.python-list@python.org> |
> Call the venv version of python and activation is handled. > E.g. in a fabfile > > myenv/bin/python myscript.py > > -- > Pete Forman > -- > https://mail.python.org/mailman/listinfo/python-list wow, the solution is so nice and simple. JM -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
[toc] | [next] | [standalone]
| From | Asaf Las <roegltd@gmail.com> |
|---|---|
| Date | 2014-02-10 08:01 -0800 |
| Message-ID | <a4307edd-d240-4145-b9d4-92dcc52883a3@googlegroups.com> |
| In reply to | #65820 |
On Monday, February 10, 2014 4:46:31 PM UTC+2, Jean-Michel Pichavant wrote: > > Call the venv version of python and activation is handled. > > E.g. in a fabfile > > > > myenv/bin/python myscript.py > > > > -- > > Pete Forman > > -- > > https://mail.python.org/mailman/listinfo/python-list > > wow, the solution is so nice and simple. > > JM > venv activation (venv/bin/activate bash script) adds venv/bin directory in venv into PATH variable in front of PATH's current value. if you plan to use pip or any other executable in venv/bin directory without running bin/activate, they have to be also addressed via absolute path too. It also defines deactivate bash function and if i am not wrong one environment variable to flag activation /Asaf
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web