Python plugins

Bengt Richter bokr at
Mon Sep 9 13:56:44 EDT 2002

On 8 Sep 2002 10:13:00 GMT, Tobias Klausmann <klausman-un080902 at> wrote:

>Hi there,
>For an open source project that needs to be extensible by its
>users, I would like to create a plugin architecture. Mind you,
>I'm not trying to use Python as a plugin language only like XChat
>or Gnumeric do. Let me illustrate:
>I have a directory somewhere in PYTHONPATH (let's just assume
>it's in the CWD) that contains lots and lots of *.py files with a
>defined set of functions (or, at least one: register()). What I'd
>like to do now is being able to load these plugins at program
>start and reload them if I'd like to later. Problem is that the
>program has to figure out by itself what *.py files are there -
>and I have to make sure somehow that I get a grip on the loaded

Bengt Richter

More information about the Python-list mailing list