# Path: lib/system/busted/Liste.py
# def get_root(self,filename):
#     """ return <root filename> of file <filename> or None """
#     if not filename or not self.has(filename):
#         return None
#     return self.liste[fn2k(filename)]['root']


import sublime
import sys
import os
from .Liste import get_root
from ..Utils import read_and_decode_json_file, read_file, get_any_ts_view, fn2l, get_any_view_with_root
# coding=utf8


#from .Project import ProjectSettings, ProjectError, errorSetting

# ----------------------------------------- CONSTANT ---------------------------------------- #

SUBLIME_PROJECT = 'sublime_project'
SUBLIME_TS = 'sublime_ts'
NO_PROJECT = 'no_project'


# ----------------------------------------- SETTINGS ---------------------------------------- #
class Settings(object):

    projects_type = {}


    def __init__(self):
        super(Settings, self).__init__()


    def get(self, token, root):
        return self.projects_type[root].get(get_any_view_with_root(root),token)



# Path: lib/system/busted/Liste.py
# def get_root(self,filename):
#     """ return <root filename> of file <filename> or None """
#     if not filename or not self.has(filename):
#         return None
#     return self.liste[fn2k(filename)]['root']


# Path: lib/system/busted/Settings.py
import sublime
import sys
import os
from .Liste import get_root
from ..Utils import read_and_decode_json_file, read_file, get_any_ts_view, fn2l, get_any_view_with_root

# coding=utf8


#from .Project import ProjectSettings, ProjectError, errorSetting

# ----------------------------------------- CONSTANT ---------------------------------------- #

SUBLIME_PROJECT = 'sublime_project'
SUBLIME_TS = 'sublime_ts'
NO_PROJECT = 'no_project'


# ----------------------------------------- SETTINGS ---------------------------------------- #
class Settings(object):

    projects_type = {}


    def __init__(self):
        super(Settings, self).__init__()


    def get(self, token, root):
        return self.projects_type[root].get(get_any_view_with_root(root),token)



    def get_root(self, view):