Hello!
I’m losing my mind trying to figure out how to properly load resource in order to read all snippets from “snippets” subfolder in our SublimeKSP plugin. It works perfectly fine as loose package, but as soon as it’s packed into .sublime-package, we come up with bupkus and nothing gets added to completions (which for our plugin means snippets work fine in ST3 but NOT in ST4!).
And I know it looks ugly, I only just now discovered it could’ve also been done like this:
from sublime_lib import ResourcePath
snippets_path = ResourcePath('Packages', __package__, 'snippets')
snippet_list = snippets_path.children()
But I tried this too and it also came up with an empty snippet_list
once it’s inside .sublime-package.
Help? Thank you!