In plugin how I can access settings object only once and after use it?
Is it correctly code?
class MyPluginEventListener(sublime_plugin.EventListener):
platform = sublime.platform().title()
settings = sublime.load_settings('MyPlugin ('+platform+').sublime-settings')
def on_post_save(self, view):
val = self.settings.get('val')
print(val)
In some times val is None. Why?