facelessuser/ApplySyntax — pull request #18 by MaciekBaron (2013-07-02 11:03:49+00:00)
Title: Fixing ST3 compatibility

`os.path.exists()` cannot be used to check whether a syntax file exists because of how the files are stored in ST3 (in `.sublime-package` files). Instead, use a `try` and `except` clause and let the function fail if the file does not exist (it will load it from the package file properly).

Tested on ST3 on MacOS.