- Code: Select all
__import__('dictionaries.lang', globals(), locals(), ['TAGS','FUNCTIONS','VARIABLES'])
with ST2 a relative module path is fine, but with ST3 I need to prefix my module name with my package name (eg: 'mypackage.dictionaries.lang').
I tried changing the levels for the __import__ but they seem to behave differently in both versions.
Should I just test for the current ST version and change the module name accordingly?
Also it seems that sublime.load_settings() wont work in my constructor; the get() method returns None.
Is there an easier way to load my module using a string from my settings file?