I have the following folder structure :
resources\
settings\
MySettings.sublime-settings
commands\
keymaps\
foo_bar.py
The MySettings.sublime-settings
is as follows:
{
"some_value": 10
}
How do I retrieve some_value
in my foo_bar.py file ? I checked the API docs for sublime.load_settings()
but it says I have to give it a file name and not a path.
For the sake of an example, foo_bar.py can be:
import sublime
import sublime_plugin
class FooBarCommand(...):
def run(self):
# I tried setting the path but the value is coming out to be None
settings = sublime.load_settings()
value = settings.get("some_value")
Sublime Build : 3211
Windows 7, 64 bit OS.