From 1a26507391c269985e9430137bb9e0e7cebce873 Mon Sep 17 00:00:00 2001 From: Mackerel Date: Fri, 7 Apr 2023 00:36:51 -0400 Subject: [PATCH] use os.sep to quickly fix linux path --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index fb03727..cc5baee 100644 --- a/__init__.py +++ b/__init__.py @@ -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)