Loading cccli/command.py +3 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,9 @@ class Commands(object): '''Load sublasss of cls from package name''' cmds=dict() for name in os.listdir(path): if name.endswith(".py") and not name.startswith("__"): if (name.endswith(".py") and not name.startswith("__") and not name.startswith(".")): fpath = os.path.join(path, name) module = imp.load_source(os.path.splitext(name)[0], fpath) for key, entry in module.__dict__.items(): Loading Loading
cccli/command.py +3 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,9 @@ class Commands(object): '''Load sublasss of cls from package name''' cmds=dict() for name in os.listdir(path): if name.endswith(".py") and not name.startswith("__"): if (name.endswith(".py") and not name.startswith("__") and not name.startswith(".")): fpath = os.path.join(path, name) module = imp.load_source(os.path.splitext(name)[0], fpath) for key, entry in module.__dict__.items(): Loading