use os.sep to quickly fix linux path

This commit is contained in:
Mackerel
2023-04-07 00:36:51 -04:00
parent e73a6d5765
commit 1a26507391
+1 -1
View File
@@ -3,7 +3,7 @@ import importlib
NODE_CLASS_MAPPINGS = {}
for node in os.listdir(os.path.dirname(__file__) + '\\nodes'):
for node in os.listdir(os.path.dirname(__file__) + os.sep + 'nodes'):
if node.startswith('DT_'):
node = node.split('.')[0]
node_import = importlib.import_module('custom_nodes.ComfyUI-Vextra-Nodes.nodes.' + node)