Python capability do like plugins ?

Leon square690410 at
Tue Oct 19 07:58:14 CEST 2004

I use a simple method...

sys.commands module --> get file list
re module --> filter file name and path
imp module --> load module
getattr() --> get varabiles

because none dll for unix, I don't know how to use *.pyd
and how to make *.pyd from *.py

"Alex Martelli" <aleaxit at> 
???????:1glurfj.zi6798qu4p2fN%aleaxit at
> Leon <square690410 at> wrote:
>> example :
>> /home/test/plugins
>> main program can dynamic import plugins directory's files....not normal
>> ¡uimport¡v
>> like winamp
> The main program can insert the plugins directory into sys.path and
> import at will (e.g with __import__) or do it with the imp module or in
> several other ways.  There's a number of recipes in the cookbook...
> Alex 

More information about the Python-list mailing list