def find_view(self, img_file_name): for window in sublime.windows(): return window.find_open_file(os.path.abspath(img_file_name)) return None