diff --git a/nodes/nodes_animation_schedules.py b/nodes/nodes_animation_schedules.py index 2fab92e..2c85609 100644 --- a/nodes/nodes_animation_schedules.py +++ b/nodes/nodes_animation_schedules.py @@ -215,7 +215,7 @@ def INPUT_TYPES(s): CATEGORY = icons.get("Comfyroll/Animation/Schedule") def csvoutput(self, output_file_path, file_name, schedule, file_extension): - filepath = output_file_path + "\\" + file_name + "." + file_extension + filepath = os.path.join(output_file_path, file_name + "." + file_extension) index = 2 @@ -225,7 +225,7 @@ def csvoutput(self, output_file_path, file_name, schedule, file_extension): while os.path.exists(filepath): if os.path.exists(filepath): - filepath = output_file_path + "\\" + file_name + str(index) + "." + file_extension + filepath = os.path.join(output_file_path, file_name + str(index) + "." + file_extension) index = index + 1 else: @@ -267,7 +267,7 @@ def csvinput(self, input_file_path, file_name, file_extension): show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Schedule-Nodes#cr-load-schedule-from-file" - filepath = input_file_path + "\\" + file_name + "." + file_extension + filepath = os.path.join(input_file_path, file_name + "." + file_extension) print(f"CR Load Schedule From File: Loading {filepath}") lists = [] diff --git a/nodes/nodes_list.py b/nodes/nodes_list.py index 7eb02ad..b2cd700 100644 --- a/nodes/nodes_list.py +++ b/nodes/nodes_list.py @@ -554,7 +554,7 @@ def load_list(self, input_file_path, file_name, file_extension): show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/List-Nodes#cr-load-value-list" - filepath = input_file_path + "\\" + file_name + "." + file_extension + filepath = os.path.join(input_file_path, file_name + "." + file_extension) print(f"CR Load Values: Loading {filepath}") list = [] diff --git a/nodes/nodes_utils_text.py b/nodes/nodes_utils_text.py index 0d8995f..c31b8b6 100644 --- a/nodes/nodes_utils_text.py +++ b/nodes/nodes_utils_text.py @@ -162,7 +162,7 @@ def save_list(self, multiline_text, output_file_path, file_name, file_extension) show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/List-Nodes#cr-save-text-to-file" - filepath = output_file_path + "\\" + file_name + "." + file_extension + filepath = os.path.join(output_file_path, file_name + "." + file_extension) index = 1 @@ -172,7 +172,7 @@ def save_list(self, multiline_text, output_file_path, file_name, file_extension) while os.path.exists(filepath): if os.path.exists(filepath): - filepath = output_file_path + "\\" + file_name + "_" + str(index) + "." + file_extension + filepath = os.path.join(output_file_path, file_name + "_" + str(index) + "." + file_extension) index = index + 1 else: break