Commit e9d3ab1c authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Ignore commands starting by a dot

parent 692d84f0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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():