plugins/__init__.py
author etisserant
Tue, 21 Aug 2007 17:21:26 +0200
changeset 12 a1f9e514f708
parent 11 75ae893d5eed
child 13 f1f0edbeb313
permissions -rw-r--r--
plugin framework organization being defined
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     1
from os import listdir, path
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     2
from xmlclass import DeclareXSDClass
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     3
from __templates import *
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     4
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     5
_base_path = path.split(__file__)[0]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     6
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
     7
__all__ = [name for name in listdir(_base_path) if path.isdir(path.join(_base_path, name)) and name != "CVS" or name.endswith(".py") and not name.startswith("__")]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     8
11
75ae893d5eed Adding plugin support in Beremiz
lbessard
parents: 10
diff changeset
     9
for name in __all__:
75ae893d5eed Adding plugin support in Beremiz
lbessard
parents: 10
diff changeset
    10
    __import__(name, globals(), locals(), [])
12
a1f9e514f708 plugin framework organization being defined
etisserant
parents: 11
diff changeset
    11