plugins/__init__.py
changeset 12 a1f9e514f708
parent 11 75ae893d5eed
child 13 f1f0edbeb313
equal deleted inserted replaced
11:75ae893d5eed 12:a1f9e514f708
     1 from os import listdir, path
     1 from os import listdir, path
       
     2 from xmlclass import DeclareXSDClass
       
     3 from __templates import *
     2 
     4 
     3 base_path = path.split(__file__)[0]
     5 _base_path = path.split(__file__)[0]
     4 
     6 
     5 __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("__")]
     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("__")]
     6 
     8 
     7 for name in __all__:
     9 for name in __all__:
     8     __import__(name, globals(), locals(), [])
    10     __import__(name, globals(), locals(), [])
       
    11