Пример #1
0
Файл: x.py Проект: boltjs/bolt
def get_nests(view):
    project_settings = settings.project_settings(view)
    resources = project_settings.get('resources', {})
    hierarchy_list = map(hier.nu, resources.get('hierarchy', []))
    flat_list = map(flat.nu, resources.get('flat', []))
    namespaced_list = map(namespaced.nu, resources.get('namespaced', []))
    return hierarchy_list + flat_list + namespaced_list
Пример #2
0
Файл: x.py Проект: boltjs/bolt
def get_external(view):
    project_settings = settings.project_settings(view)
    resources = project_settings.get('resources', {})
    return resources.get('external', [])
Пример #3
0
Файл: x.py Проект: boltjs/bolt
def get_base(view):
    default = view.window().folders()[0] if view.window() is not None else ''
    project_settings = settings.project_settings(view)
    return project_settings.get('root', default)