Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19482
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andrea.crotti.0@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.039 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'python': 0.08; 'called.': 0.09; 'subject:virtualenv': 0.09; 'debugging': 0.13; 'thanks,': 0.18; 'exists': 0.18; 'maybe': 0.21; "doesn't": 0.22; 'fine,': 0.23; 'command': 0.24; 'code': 0.25; "i'm": 0.27; 'separate': 0.28; 'script': 0.28; 'example': 0.28; 'environment.': 0.30; 'does': 0.32; 'message-id:@gmail.com': 0.33; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.33; 'there': 0.33; 'received:209.85.212': 0.34; 'run': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'some': 0.38; 'received:209.85': 0.38; 'received:209': 0.39; 'change': 0.40; 'to:addr:python.org': 0.40; 'projects': 0.62; 'andrea': 0.84; 'skip:v 40': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=bi+ZAG6gIyBkeWwtIECjSMzkMXRaZN5n8fjJMC41ceA=; b=bod0Ji5AktY58qp00V03crzCdsyrcUp4emAvH2ZSaLywDxQCjrV2+naYA+u2cIGATg zOpGwSXEv3eFwGQZMCjFGdDElCx5zMswvgeVuvNbVjAlbyR2HvtKwnaLA1nZyvAX6ESO oQHeidQpDNrLEheyKo+vDYrHriJKWyBX1HGgM= |
| Date | Thu, 26 Jan 2012 11:16:32 +0000 |
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | running in a virtualenv |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5118.1327576596.27778.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1327576596 news.xs4all.nl 6879 [2001:888:2000:d::a6]:40024 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:19482 |
Show key headers only | View raw
I have a python script which has to run some other code and to separate
the different projects I'm
using virtualenv.
What my this script does is:
- check if the virtualenv exists already, otherwise create it with
virtualenv.create_environment(venv_path, site_packages=True,
unzip_setuptools=False,
never_download=True)
- generate the right command to call and use
check_call(['virtualenv_interpreter', 'command', 'to', 'run']) to
execute the
whole thing inside the virtual environment.
It works fine, but for example debugging doesn't work very after the
check_call is called.
Is there a better way or maybe is it possible to change the
sys.executable at run-time?
Or in general how do I debug/profile python subprocesses?
Thanks,
Andrea
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
running in a virtualenv Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-26 11:16 +0000
csiph-web