# Path: kano_profile_gui/paths.py

# 
# Path: kano_profile/paths.py
# TRACKER_UUIDS_PATH = os.path.join(kanoprofile_dir, 'tracker', 'uuids')
# PAUSED_SESSIONS_FILE = os.path.join(kanoprofile_dir, '.paused_sessions')


import os
from kano.logging import logger
from .paths import image_dir
from kano_profile.paths import online_badges_dir
#!/usr/bin/env python

# images.py
#
# Copyright (C) 2014, 2015 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#




# "Badge", folder_name, file_name, width of image
def get_image(category, subcategory, name, subfolder_str):
    # The online badge image files are stored in the home directory.
    # The function bellow gets the corrects path.
    if category == 'badges' and subcategory == 'online':
        return get_online_badge_path(name)


# Path: kano_profile_gui/paths.py

# 
# Path: kano_profile/paths.py
# TRACKER_UUIDS_PATH = os.path.join(kanoprofile_dir, 'tracker', 'uuids')
# PAUSED_SESSIONS_FILE = os.path.join(kanoprofile_dir, '.paused_sessions')


# Path: kano_profile_gui/images.py
import os
from kano.logging import logger
from .paths import image_dir
from kano_profile.paths import online_badges_dir

#!/usr/bin/env python

# images.py
#
# Copyright (C) 2014, 2015 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#




# "Badge", folder_name, file_name, width of image
def get_image(category, subcategory, name, subfolder_str):
    # The online badge image files are stored in the home directory.
    # The function bellow gets the corrects path.
    if category == 'badges' and subcategory == 'online':
        return get_online_badge_path(name)


    folder = os.path.join(image_dir, category, subfolder_str, subcategory)