etisserant@10: from os import listdir, path etisserant@10: lbessard@11: base_path = path.split(__file__)[0] etisserant@10: lbessard@11: __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("__")] etisserant@10: lbessard@11: for name in __all__: lbessard@11: __import__(name, globals(), locals(), [])