Example #1
0
File: x.py Project: 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
Example #2
0
File: x.py Project: boltjs/bolt
def get_external(view):
    project_settings = settings.project_settings(view)
    resources = project_settings.get('resources', {})
    return resources.get('external', [])
Example #3
0
File: x.py Project: 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)