Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75231
| From | dieter <dieter@handshake.de> |
|---|---|
| Subject | Re: rpath alike feature for python scripts |
| Date | 2014-07-26 07:48 +0200 |
| References | <20140725140813.GA1867@aepfle.de> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12335.1406353757.18130.python-list@python.org> (permalink) |
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