Sublime Forum

How to open internal files in windows

#1

Hi,

My plugin works great on Mac, I want to pass it to a coworker using windows and tried it on windows. The plugin is failing to open internal resources. For example:

view.set_syntax_file(os.path.join(‘Packages’, ‘RuleEditor’, ‘themes’, ‘Rule.tmLanguage’))

I get an error loading syntax file. Any idea why?

Thanks,
A

0 Likes

#2

fixed, just always use unix separators

0 Likes

#3

Yes, Sublime Text always uses a forward slash for relative ressource paths.

0 Likes