def get_orm_classes(path):
ret = set()<EOL>try:<EOL><INDENT>m = importlib.import_module(path)<EOL><DEDENT>except ImportError:<EOL><INDENT>m, klass = get_objects(path)<EOL>if issubclass(klass, Orm):<EOL><INDENT>ret.add(klass)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>ret.update(get_subclasses(m, Orm))<EOL><DEDENT>return ret<EOL>
this will return prom.Orm classes found in the given path (classpath or modulepath)