Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30673
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'bash': 0.07; 'parsing': 0.07; 'subject:file': 0.07; 'wrapper': 0.07; 'python': 0.09; 'novel': 0.09; 'received:mail- vc0-f174.google.com': 0.09; 'script,': 0.09; 'looked': 0.10; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guessing': 0.16; 'oct': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'solution.': 0.18; 'variable': 0.20; 'seems': 0.23; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'helpful.': 0.29; 'invoke': 0.29; 'received:209.85.220.174': 0.29; "i'm": 0.29; 'suggestion': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'jason': 0.35; 'doing': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'wanted': 0.36; 'available.': 0.37; 'option': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'obvious': 0.71; 'responses': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RV7lDqLkAN18sMBNdOpjdV8LTRWEaSAVE1z2VEfBrDo=; b=s1XLZZXprsOx8HWpppr0b/FWD/WLQR6nNkIPpAi16FydKhT8/aXJytIvVRRcnJhXag vqdSvvXzCHIIEauJIXtwdvbxU2quD+xWuhe+mRj1VNTsLXM0PVdQboOTQlhxGRjzl1ip VmCUTR1rsugz9dMEzf3USW8bxoUuPxZ0Q8AGogyv9c/E0QWquwYzAiJmouAfxzXV5M1E 0O5nEKq2Cl3rX6uav21KXfKPgx4EU1SywmQFE9sGFrWc7OiORuE+FWKidjP69iXru//x oxUQVViCR1O2XdN0FewI5MtzpMhggJNeQVUKceWAOTOcC1mNK687CCen16r1e7jfRPsJ 5lEA== |
| MIME-Version | 1.0 |
| In-Reply-To | <CANy1k1ifxed+V8v=sG+hU+-TXd+xzo8B0VBcGydardmGLtZNyw@mail.gmail.com> |
| References | <CANy1k1i7XA3pTGeZeWk8V4osPkRoWxkSQJehhix9nHzDzO3HTg@mail.gmail.com> <CANy1k1g1dt6GQR80LWMkBt+YXzZXxtkUSV=qamWsS8mZXiyaAA@mail.gmail.com> <CAPTjJmrcsPgtcy6Aa5KJ8mRjFuB5b-FBanVQJ1o0M_PnHVpL2w@mail.gmail.com> <CANy1k1hzHqODvV7Eu64maOfCx8Os48wro56HG=uheyjqUos-uQ@mail.gmail.com> <CAPTjJmq2p5FLq8_w35qguoBhckBTdohb419j_jCWuvTP9vjKog@mail.gmail.com> <CANy1k1ifxed+V8v=sG+hU+-TXd+xzo8B0VBcGydardmGLtZNyw@mail.gmail.com> |
| Date | Wed, 3 Oct 2012 14:03:59 +1000 |
| Subject | Re: parse an environment file |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.1753.1349237042.27098.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1349237042 news.xs4all.nl 6915 [2001:888:2000:d::a6]:52233 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:30673 |
Show key headers only | View raw
On Wed, Oct 3, 2012 at 1:49 PM, Jason Friedman <jason@powerpull.net> wrote: > Based on your responses and everyone's responses I'm guessing that > what I am doing is sufficiently novel that there is no canned > solution. I looked at shlex but did not see how that would be > helpful. The only canned solution for parsing a bash script is bash. Think about it the other way around: If you wanted to have a Python variable made available to a bash script, the obvious thing to do is to invoke Python. It's the same thing. I recommend going with Hans Mulder's suggestion of a wrapper script; that seems to be the cleanest option available. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: parse an environment file Chris Angelico <rosuav@gmail.com> - 2012-10-03 14:03 +1000
csiph-web