ComfyUI_Comfyroll_CustomNodes icon indicating copy to clipboard operation
ComfyUI_Comfyroll_CustomNodes copied to clipboard

Please mark strings like "C:\Windows\Fonts" as raw string literals so \W will not be seen as escape sequence

Open byteconcepts opened this issue 11 months ago • 2 comments

Hi, since I upgraded my Linux OS and python I got errors that assume escape sequences in strings that should be marked as raw string literals. This lead to numerous follow up errors.

Please just add an r before the string.

Here are the snippets that bugged myself: (I did not search for more occurences, but maybe there are some more.)

nodes/nodes_xygrid.py:256 "fonts\Roboto-Regular.ttf" -> r"fonts\Roboto-Regular.ttf"

nodes/nodes_list.py:383 nodes/nodes_list.py:393 "C:\Windows\Fonts" -> r"C:\Windows\Fonts"

Many thanks in advance and for the great work you already have done!

byteconcepts avatar Jan 04 '25 10:01 byteconcepts