[Tutor] import modules outside the Lib directory

Charlie Derr drivel_drool@bigfoot.com
Sat, 17 Jun 2000 14:45:51 -0400


~
~ I'm ultra new at programming - but boy is it fun so far!  How can
~ I import
~ modules that reside in directories outside the Lib directory?
~ (this question
~ is based on the default install locations for Python 1.5.2 on
~ Windows and SGI
~ Irix 6.5)
~
~ thanks.


I believe the preferred solution is to set an environment variable
PYTHONPATH.  Put /python/lib in it along with whatever other directories
you'd like to import from.

	hth,
		~c