def debug_enabled():

    # The Sublime Text API is not threadsafe in ST2, so we
    # double check here to prevent crashes
    if not isinstance(threading.current_thread(), threading._MainThread):
        raise RuntimeError('golangconfig.setting_value() must be called from the main thread')

    value = sublime.load_settings('golang.sublime-settings').get('debug')
    return False if value == '0' else bool(value)
Publishing a documentation version to the version of the latest full
dataset/ETHPy150Open golang/sublime-config/all/golangconfig.py/debug_enabled--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/admin/test/test_release.py/PublishDocsTests.test_production_can_publish_doc_version