Remove nodes that have been made by others already

This commit is contained in:
Dion Timmer
2023-03-31 15:05:08 -04:00
parent ca845bce15
commit 56e4a85558
16 changed files with 179 additions and 440 deletions
+12
View File
@@ -0,0 +1,12 @@
import os
import importlib
NODE_CLASS_MAPPINGS = {}
for node in os.listdir(os.path.dirname(__file__) + '\\nodes'):
if node.startswith('DT_'):
node = node.split('.')[0]
node_import = importlib.import_module('custom_nodes.VextraNodes.nodes.' + node)
print('Imported node: ' + node)
# get class node mappings from py file
NODE_CLASS_MAPPINGS.update(node_import.NODE_CLASS_MAPPINGS)