Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75231
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'interpreter': 0.05; 'binary': 0.07; 'feature,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'corresponds': 0.16; 'elf': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'simulate': 0.16; 'subject:python': 0.16; 'appropriate': 0.16; 'library': 0.18; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'looks': 0.24; 'sort': 0.25; 'script': 0.25; 'asking': 0.27; 'header:X -Complaints-To:1': 0.27; 'function': 0.29; "i'm": 0.30; 'libraries': 0.31; 'writes:': 0.31; 'could': 0.34; 'but': 0.35; 'charset:us-ascii': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'ensure': 0.60; 'first': 0.61; 'back': 0.62; 'received:217': 0.63; 'here': 0.66; 'default': 0.69; 'lack': 0.78; 'enhances': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | dieter <dieter@handshake.de> |
| Subject | Re: rpath alike feature for python scripts |
| Date | Sat, 26 Jul 2014 07:48:59 +0200 |
| References | <20140725140813.GA1867@aepfle.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Gmane-NNTP-Posting-Host | pd9e08c60.dip0.t-ipconnect.de |
| User-Agent | Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) |
| Cancel-Lock | sha1:fOBxCLz6hRvjC5GneoKTrOWK0jg= |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12335.1406353757.18130.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1406353757 news.xs4all.nl 2949 [2001:888:2000:d::a6]:41553 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75231 |
Show key headers only | View raw
Olaf Hering <olaf@aepfle.de> writes: > ELF binaries have a concept of RPATH, that means the interpreter looks > for libraries first in a list of directories provided by the binary > before falling back to default system directories. > > Since python scripts also do some sort of library loading, but lack an > RPATH like feature, I'm asking here how to simulate it. The "binary" corresponds to a script. The script could have a function "setup_path" which enhances "sys.path" as appropriate and ensure that this function is called near its beginning.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: rpath alike feature for python scripts dieter <dieter@handshake.de> - 2014-07-26 07:48 +0200
csiph-web