From: MHammond at skippinet.com.au (Mark Hammond)
Date: Sat, 15 May 1999 10:51:07 +1000
Subject: Set Pythonpath on NT/95/98 without Win32 extensions
References: <8269DB660804D3119F8F00C04F795FC2016184@vrtmail.vrtelecom.com> <373c1781.68945458@news.omnilink.de> <5l90ar7er1.fsf@eric.cnri.reston.va.us>
Message-ID: <7higbi$hcj$1@m2.c2.telstra-mm.net.au>
X-UID: 1965                                                 

Guido van Rossum wrote in message <5l90ar7er1.fsf at eric.cnri.reston.va.us>...
>spamfranke at bigfoot.de (Stefan Franke) writes:
>
>> What about installing a .pth file in some directory of sys.path?
>
>Actually, on Windows, the .pth file should be in the toplevel Python
>installation directory, typically C:\Program Files\Python\.

And even then it doesnt always work :-(  This working is dependant on
sys.exc_prefix being set, and if Python is being embedded in another app it
isnt (mainly because in that case, the Python home directory is not easily
deducible) !  For example, if you attempt to use a .pth file to point to a
COM server, it wont be found as the host process usually is something other
than Python.

Mark.







