[Tutor] Built-in modules

Kent Johnson kent37 at tds.net
Tue Jun 21 21:46:41 CEST 2005

Alberto Troiano wrote:
> Hey tutors
> I have some classes I want to make available as built-in modules in Python 
> 2.3.4 over Windows
> To make myself clear in case you don't understand I have the file List.py (a 
> nested list C# like) and I want to be able to call the class List (which is 
> inside the List.py) without having to copy it in every folder where I have a 
> script that needs this module

In your Python23\Lib folder make a folder called site-packages. (If you already have one that's OK too.) Put List.py in site-packages. It will be available to any Python program.


More information about the Tutor mailing list