ST2-Color-Console icon indicating copy to clipboard operation
ST2-Color-Console copied to clipboard

Not working in windows: quoted backslashes issue

Open fstafforini opened this issue 12 years ago • 1 comments

os.path.join uses a backslash in windows, which results in an incorrrect string in Widget.sublime-settings, because the backslashes turn into escapes when quoted.

Quick fix: replace backslashes with double backslashes. In ColorConsole.py:

    "syntax": \""""
        widgetSettings += os.path.join(sublime.packages_path(), "ColorConsole", "Console.tmLanguage").replace('\\', '\\\\')
        widgetSettings += """\",

fstafforini avatar Apr 18 '13 15:04 fstafforini

+1 fortunately there are only couple slashes to fix

danyeah avatar May 28 '13 18:05 danyeah