# 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_avatar/paths.py
# AVATAR_DEFAULT_LOC = os.path.join(get_home(), '.character-content')


import os
from kano.logging import logger
from kano.utils import (read_json, write_json, get_date_now, ensure_dir,
                        chown_path, get_user_unsudoed, run_bg, is_running,
                        list_dir)
from .paths import profile_file, profile_dir, kanoprofile_dir, bin_dir
from kano_avatar.paths import AVATAR_DEFAULT_LOC
#!/usr/bin/env python

# profile.py
#
# Copyright (C) 2014-2019 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#




def load_profile():
    ''' Read profile data from file containing profile information and return
    it as a dict. If such a file is not present, then a new dict is created
    :returns: profile data as a dict
    :rtype: dict
    '''

# 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_avatar/paths.py
# AVATAR_DEFAULT_LOC = os.path.join(get_home(), '.character-content')


# Path: kano_profile/profile.py
import os
from kano.logging import logger
from kano.utils import (read_json, write_json, get_date_now, ensure_dir,
                        chown_path, get_user_unsudoed, run_bg, is_running,
                        list_dir)
from .paths import profile_file, profile_dir, kanoprofile_dir, bin_dir
from kano_avatar.paths import AVATAR_DEFAULT_LOC

#!/usr/bin/env python

# profile.py
#
# Copyright (C) 2014-2019 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#




def load_profile():
    ''' Read profile data from file containing profile information and return
    it as a dict. If such a file is not present, then a new dict is created
    :returns: profile data as a dict
    :rtype: dict
    '''

    data = read_json(profile_file)