Exemplo n.º 1
0
def set_variable(name, value):
    voc = zen_resources.get_vocabulary('user') or {}
    if 'varaibles' not in voc:
        voc['variables'] = {}

    voc['variables'][name] = value
    zen_resources.set_vocabulary(voc, 'user')
Exemplo n.º 2
0
def set_variable(name, value):
    voc = zen_resources.get_vocabulary('user') or {}
    if 'varaibles' not in voc:
        voc['variables'] = {}

    voc['variables'][name] = value
    zen_resources.set_vocabulary(voc, 'user')
Exemplo n.º 3
0
def load_settings(force_reload=False):
    if not zcr.user_settings or force_reload:
        my_zen_settings = zen_settings.get('my_zen_settings')

        if my_zen_settings is not None:
            debug('loading my_zen_settings from zen-settings.sublime-settings')
            zcr.set_vocabulary(my_zen_settings, zcr.VOC_USER)
            assert zcr.vocabularies[zcr.VOC_USER] is my_zen_settings
Exemplo n.º 4
0
def load_settings(force_reload=False):
    if not zcr.user_settings or force_reload:
        my_zen_settings = zen_settings.get('my_zen_settings')

        if my_zen_settings is not None:
            debug('loading my_zen_settings from zen-settings.sublime-settings')
            zcr.set_vocabulary(my_zen_settings, zcr.VOC_USER)
            assert zcr.vocabularies[zcr.VOC_USER] is my_zen_settings