# Path: linux_story/common.py
# def get_max_challenge_number():
# def get_username():
# def get_story_file(name):
# 
# Path: linux_story/helper_functions.py
# def debugger(text):
#     """
#     Change first line to "if True:" to show all the debugging lines.
#     """
# 
#     if False:
#         print text


import os
import getpass
from kano.logging import logger
from linux_story.common import tq_file_system, fake_home_dir
from linux_story.helper_functions import debugger
# commands_fake.py
#
# Copyright (C) 2014-2016 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Terminal commands which are emulated





def cd(real_path, line, has_access=True):
    if not has_access:
        # Could simplify this to "Permission denied"
        print "-bash: cd: {}: Permission denied".format(line)
        return

    if not line:

# Path: linux_story/common.py
# def get_max_challenge_number():
# def get_username():
# def get_story_file(name):
# 
# Path: linux_story/helper_functions.py
# def debugger(text):
#     """
#     Change first line to "if True:" to show all the debugging lines.
#     """
# 
#     if False:
#         print text


# Path: linux_story/commands_fake.py
import os
import getpass
from kano.logging import logger
from linux_story.common import tq_file_system, fake_home_dir
from linux_story.helper_functions import debugger

# commands_fake.py
#
# Copyright (C) 2014-2016 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Terminal commands which are emulated





def cd(real_path, line, has_access=True):
    if not has_access:
        # Could simplify this to "Permission denied"
        print "-bash: cd: {}: Permission denied".format(line)
        return

    if not line:

        new_path = fake_home_dir