Remove nodes that have been made by others already
This commit is contained in:
+12
@@ -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)
|
||||
Reference in New Issue
Block a user