arve.knud...@gmail.com schrieb:
On 15 Nov, 20:05, "Diez B. Roggisch" <de...@nospam.web.de> wrote:
arve.knud...@gmail.com schrieb:
Hi
I need to link against Python, is there a way to get the path to the
directory containing Python's C library (e.g., <exec-prefix>/libs on
Windows)?
Most probably from the registry somehow. In general, try & locate a
python-executable, and make it execute
python -c "import sys; print sys.prefix"
Capture that, and you're done. Depending on the OS, the libs then are
placed in e.g. <prefix>/lib.
That doesn't solve anything, the hard part is figuring out the part
after <prefix> ..
AFAIK is that only varying based on the OS. Under unix, it's
<prefix>/lib/python<version>/
You can get the platform via sys.platform.
Diez
--
http://mail.python.org/mailman/listinfo/python-list