Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75231 > unrolled thread

Re: rpath alike feature for python scripts

Started bydieter <dieter@handshake.de>
First post2014-07-26 07:48 +0200
Last post2014-07-26 07:48 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: rpath alike feature for python scripts dieter <dieter@handshake.de> - 2014-07-26 07:48 +0200

#75231 — Re: rpath alike feature for python scripts

Fromdieter <dieter@handshake.de>
Date2014-07-26 07:48 +0200
SubjectRe: rpath alike feature for python scripts
Message-ID<mailman.12335.1406353757.18130.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web