rrerolle / sublime-scheme-cycler

A simple Color Scheme cycler for Sublime Text 2
26 stars 3 forks source link

Error using in Windows #2

Closed darkgray1981 closed 12 years ago

darkgray1981 commented 12 years ago

This package bugs out with a "file not found" error in Windows 7, because it tries to use a path with "foo\bar" style, which apparently doesn't work very well in ST2.

You can fix this (for Windows, at least) by replacing this command: os.path.join('Packages', 'Color Scheme - Default', scheme) with this: '/'.join( ['Packages', 'Color Scheme - Default', scheme] )

I haven't tested the above on any other OS, so it might just break it elsewhere.

rrerolle commented 12 years ago

This is strange since os.path.join is especially designed to allow cross-OS path manipulations. I don't see why SublimeText would require using unix-style paths under Windows.

I'll fire up a windows VM to try this out.