How to import a package

sashan sashang at nospam.ihug.co.nz
Fri Dec 6 22:06:15 EST 2002


John Thingstad wrote:

> On Sat, 07 Dec 2002 14:59:48 +1300, sashan <sashang at nospam.ihug.co.nz> 
> wrote:
>
> You probably messed up the PYTHONPATH environment variable.
> The package has to be in the path and has to be unique.


I thought doing this:
sys.path.append('e:/code/AppDir/SomePackage')

would have the same effect as setting PYTHONPATH to
<long list of previous directories>;e:/code/AppDir/SomePackage


-- 
sashan
-------------------------------
P: Egad! You astound me, Brain!
B: That's a simple task, Pinky.




More information about the Python-list mailing list