A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/314386.html below:

Best practices for dynamically loading plugins at startup

Best practices for dynamically loading plugins at startup Best practices for dynamically loading plugins at startupJarek Zgoda jzgoda at o2.usun.pl
Sun Sep 25 17:27:09 EDT 2005
Christoph Haas napisaƂ(a):

> Since I don't know which plugins have been put into that directory
> I cannot just "import Plugin1, Plugin2, Plugin3" in the "__init__.py".
> So I need to find out the *.py there and load them during startup.
> I could do that with a "walk" over that directory.

See entry for __import__ at
http://www.python.org/doc/2.3/lib/built-in-funcs.html

-- 
Jarek Zgoda
http://jpa.berlios.de/

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4