[core] plugin loading: ignore folders starting with __

This commit is contained in:
Yann Lanthony 2017-10-19 16:22:04 +02:00
parent 48e3e4cfa1
commit f9ff32c68a

View file

@ -64,7 +64,7 @@ def loadNodes(folder, packageName):
def loadAllNodes(folder):
global nodesDesc
for f in os.listdir(folder):
if os.path.isdir(os.path.join(folder, f)):
if os.path.isdir(os.path.join(folder, f)) and not f.startswith('__'):
nodeTypes = loadNodes(folder, f)
nodes = dict([(m.__name__, m) for m in nodeTypes])