Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/a/u/AutoCopyright-HEAD/CopyrightCommand.py   AutoCopyright(Download)
    def __init__(self, view):
        """Initializes the CopyrightCommand class."""
        self.settings = sublime.load_settings(AutoCopyright.constants.SETTINGS_FILE)
        self.view = view
        self.selected_owner = None
    def handle_missing_owner_exception(self):
        """Opens the settings file and suggests the user edit it with the proper owner name."""
        fileName = sublime.active_window().active_view().file_name()
        if fileName is not None and fileName.endswith(AutoCopyright.constants.SETTINGS_FILE):
            return
 
        AutoCopyright.helper.error_message(AutoCopyright.constants.ERROR_MISSING_OWNER)
        user_settings_path = os.path.join(sublime.packages_path(), AutoCopyright.constants.SETTINGS_PATH_USER)
        user_settings_filename = os.path.join(user_settings_path, AutoCopyright.constants.SETTINGS_FILE)