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


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

Re: rpath alike feature for python scripts

Started byOlaf Hering <olaf@aepfle.de>
First post2014-07-28 09:57 +0200
Last post2014-07-28 09:57 +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 Olaf Hering <olaf@aepfle.de> - 2014-07-28 09:57 +0200

#75307 — Re: rpath alike feature for python scripts

FromOlaf Hering <olaf@aepfle.de>
Date2014-07-28 09:57 +0200
SubjectRe: rpath alike feature for python scripts
Message-ID<mailman.12385.1406535054.18130.python-list@python.org>
On Sat, Jul 26, dieter wrote:

> 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.

Yes, but how does it obtain the required values? In other words, at
buildtime /some/where is known because its the --prefix= value.
How does it know the remainder?

+sys.path.insert(0, "/some/where/lib64/python2.6/site-packages")


Olaf

[toc] | [standalone]


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


csiph-web