Thanks Trent.

-Karthik.

-----Original Message-----
From: Trent Mick [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 10, 2004 3:27 AM
To: Rajagopalan, Karthik
Cc: [EMAIL PROTECTED]
Subject: Re: How to get python23.lib directory from installtion


[Rajagopalan, Karthik wrote]
> To solve this, I need to use python23.lib for resolving the reference.
> Can I get the location path of python23.lib using any python command
> without hardcoding it in my script? To add, it should function the
same
> way Python currently support getting C include files using
> "distutils.sysconfig get_python_inc()".

I don't know how distutils.sysconfig get_python_inc works but this will
get the fullpath ti pythonXY.lib on Windows:

    >>> ver = "".join(map(str, sys.version_info[:2]))
    >>> os.path.join(sys.prefix, "libs", "python%s.lib" % ver)
    'C:\\Python23\\libs\\python23.lib'

Trent

-- 
Trent Mick
[EMAIL PROTECTED]

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to