# Path: ice/logs.py
# STREAM_STRING_FORMAT = '%(leveltag)s%(message)s'
# FILE_STRING_FORMAT = '%(asctime)s [%(levelname)s][%(filename)s][%(funcName)s:%(lineno)s]: %(message)s'
# def is_test_stack_frame(frame):
# def is_running_in_test():
#   def _tag_for_level(self, levelno):
#   def filter(self, record):
# def create_stream_handler(level):
# def create_file_handler(level):
# def create_logger():
# class IceLevelTagFilter(logging.Formatter):


import sys
import os
import grid_image_provider
from ice.logs import logger
#!/usr/bin/env python
# encoding: utf-8
"""
local_provider.py

Created by Scott on 2013-12-26.
Copyright (c) 2013 Scott Rice. All rights reserved.
"""




class LocalProvider(grid_image_provider.GridImageProvider):

  def valid_extensions(self):
    return ['.png', '.jpg', '.jpeg', '.tiff']

  def image_for_rom(self, rom):
    """
    Checks the filesystem for images for a given ROM. To do so, it makes
    use of a consoles 'images' directory. If it finds an image in that
    directory with the same name as the ROMs name then it will return that.
    """
    img_dir = rom.console.images_directory
    if img_dir == "":

# Path: ice/logs.py
# STREAM_STRING_FORMAT = '%(leveltag)s%(message)s'
# FILE_STRING_FORMAT = '%(asctime)s [%(levelname)s][%(filename)s][%(funcName)s:%(lineno)s]: %(message)s'
# def is_test_stack_frame(frame):
# def is_running_in_test():
#   def _tag_for_level(self, levelno):
#   def filter(self, record):
# def create_stream_handler(level):
# def create_file_handler(level):
# def create_logger():
# class IceLevelTagFilter(logging.Formatter):


# Path: ice/gridproviders/local_provider.py
import sys
import os
import grid_image_provider
from ice.logs import logger

#!/usr/bin/env python
# encoding: utf-8
"""
local_provider.py

Created by Scott on 2013-12-26.
Copyright (c) 2013 Scott Rice. All rights reserved.
"""




class LocalProvider(grid_image_provider.GridImageProvider):

  def valid_extensions(self):
    return ['.png', '.jpg', '.jpeg', '.tiff']

  def image_for_rom(self, rom):
    """
    Checks the filesystem for images for a given ROM. To do so, it makes
    use of a consoles 'images' directory. If it finds an image in that
    directory with the same name as the ROMs name then it will return that.
    """
    img_dir = rom.console.images_directory
    if img_dir == "":

      logger.debug(