# Path: linux_story/helper_functions.py
# def get_path_to_file_in_system(name):
#     """
#     Finds the path of a file (asset), first looking for any translation,
#     and falling back to the default location.
# 
#     Args:
#         name (str) - the name of the asset file
# 
#     Returns:
#         path (str) - the path to the file (asset)
#     """
# 
#     path_in_system = None
# 
#     lang_dirs = get_language_dirs()
# 
#     for lang_dir in lang_dirs:
#         asset_path = os.path.join(localized_story_files_dir_pattern.format(lang_dir), name)
#         if os.path.isfile(asset_path):
#             path_in_system = asset_path
#             break
# 
#     if path_in_system is None:
#         path_in_system = os.path.join(fallback_story_files_dir, name)
# 
#     return path_in_system


import time
import curses
import random
import os
import struct
            import fcntl
            import termios
from linux_story.helper_functions import get_path_to_file_in_system
#
# Animation.py
#
# Copyright (C) 2014-2017 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# A simple running bird animation for terminal quest, heavily based on the rabbit animation.
#
#




class Animation:
    def __init__(self, filename):
        self.__screen = None

# Path: linux_story/helper_functions.py
# def get_path_to_file_in_system(name):
#     """
#     Finds the path of a file (asset), first looking for any translation,
#     and falling back to the default location.
# 
#     Args:
#         name (str) - the name of the asset file
# 
#     Returns:
#         path (str) - the path to the file (asset)
#     """
# 
#     path_in_system = None
# 
#     lang_dirs = get_language_dirs()
# 
#     for lang_dir in lang_dirs:
#         asset_path = os.path.join(localized_story_files_dir_pattern.format(lang_dir), name)
#         if os.path.isfile(asset_path):
#             path_in_system = asset_path
#             break
# 
#     if path_in_system is None:
#         path_in_system = os.path.join(fallback_story_files_dir, name)
# 
#     return path_in_system


# Path: linux_story/Animation.py
import time
import curses
import random
import os
import struct
            import fcntl
            import termios
from linux_story.helper_functions import get_path_to_file_in_system

#
# Animation.py
#
# Copyright (C) 2014-2017 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# A simple running bird animation for terminal quest, heavily based on the rabbit animation.
#
#




class Animation:
    def __init__(self, filename):
        self.__screen = None

        self.__path = get_path_to_file_in_system(filename)