rpath alike feature for python scripts

Olaf Hering olaf at aepfle.de
Mon Jul 28 09:57:40 CEST 2014


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



More information about the Python-list mailing list