add node on nodes feature

This commit is contained in:
fluzzi32 committed 2022-03-31 13:42:25 -03:00
1 parent fd8b367d52
commit 2b9e754ff5
2 files changed
+6 -1

No files matched your search

+4 -1
View File
@@ -290,7 +290,10 @@ class nodes:
self.nodelist = []
self.config = config
for n in nodes:
self.nodelist.append(node(n, **nodes[n], config = config))
this = node(n, **nodes[n], config = config)
self.nodelist.append(this)
setattr(self,n,this)
def splitlist(self, lst, n):
for i in range(0, len(lst), n):