Hi,
in my plugin i use that method to read settings
[code]SETTINGS_FILE = PLUGIN_NAME + “.sublime-settings”
SETTINGS_PREFIX = PLUGIN_NAME.lower() + ‘_’
settings = sublime.load_settings(SETTINGS_FILE)
def get_setting(key, default=None, view=None):
try:
if view == None:
view = sublime.active_window().active_view()
s = view.settings()
if s.has(SETTINGS_PREFIX + key):
return s.get(SETTINGS_PREFIX + key)
except:
pass
if settings.has(key):
print('get_setting: ’ + key + ‘,’ + settings.get(key, default))
return settings.get(key, default)
else:
return default[/code]
When i run my plugin (through a key press), i first load a setting like such
self.defaultKeychain = str(get_setting("iosKeychain", "unknown"))
My problem is that if close/start ST, then on a command run those settings wont be read :s
It will only work if i open the actual plugin py file and just save the file (which i think means a reload of the plugin).
DOes anyone have any clue on why this is happening?
Thanks