# Path: libraries/tools.py
# def get_setting(key, default=None):
#     """
#     get setting handled by ST
#     """
#     settings = load_settings("deviot.sublime-settings")
#     value = settings.get(key, default)
# 
#     try:
#         return eval(value)
#     except(NameError, SyntaxError, TypeError) as e:
#         return value
# 
# def save_setting(key, value=None, sys_options=False):
#     """
#     save setting handled by ST
#     """
#     settings = load_settings("deviot.sublime-settings")
# 
#     if(value is None):
#         settings.erase(key)
#     else:
#         settings.set(key, value)
# 
#     save_settings("deviot.sublime-settings")


from ..api import deviot
from .tools import get_setting, save_setting
from ..platformio.pio_bridge import PioBridge
from ..libraries.readconfig import ReadConfig
        from .file import File
        from .serial import serial_port_list
        from .tools import get_sysetting
            from ..platformio.compile import Compile
            from ..platformio.upload import Upload
        from .mdns.mdns import MDNSBrowser
        from .project_check import ProjectCheck
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals


logger = deviot.create_logger('Deviot')


class PreferencesBridge(PioBridge):
    # Flags to be used with last action feature
    COMPILE = 1
    UPLOAD = 2


# Path: libraries/tools.py
# def get_setting(key, default=None):
#     """
#     get setting handled by ST
#     """
#     settings = load_settings("deviot.sublime-settings")
#     value = settings.get(key, default)
# 
#     try:
#         return eval(value)
#     except(NameError, SyntaxError, TypeError) as e:
#         return value
# 
# def save_setting(key, value=None, sys_options=False):
#     """
#     save setting handled by ST
#     """
#     settings = load_settings("deviot.sublime-settings")
# 
#     if(value is None):
#         settings.erase(key)
#     else:
#         settings.set(key, value)
# 
#     save_settings("deviot.sublime-settings")


# Path: libraries/preferences_bridge.py
from ..api import deviot
from .tools import get_setting, save_setting
from ..platformio.pio_bridge import PioBridge
from ..libraries.readconfig import ReadConfig
        from .file import File
        from .serial import serial_port_list
        from .tools import get_sysetting
            from ..platformio.compile import Compile
            from ..platformio.upload import Upload
        from .mdns.mdns import MDNSBrowser
        from .project_check import ProjectCheck

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals


logger = deviot.create_logger('Deviot')


class PreferencesBridge(PioBridge):
    # Flags to be used with last action feature
    COMPILE = 1
    UPLOAD = 2


    def __init__(self):