Find automatically the plugins in the directory plugin
[bertos.git] / wizard / plugins / __init__.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 #
4 # Copyright 2009 Develer S.r.l. (http://www.develer.com/)
5 # All rights reserved.
6 #
7 # $Id$
8 #
9 # Author: Lorenzo Berni <duplo@develer.com>
10 #
11
12 import os
13 import glob
14
15 _modules = glob.glob(os.path.dirname(os.path.abspath(__file__)) + os.sep + "*.py")
16 _modules = [os.path.basename(module) for module in _modules]
17 __all__ = []
18 for module in _modules:
19     if module != "__init__.py":
20         __all__.append(module.replace(".py", ""))