# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard
# 
# Path: linux_story/common.py
# def get_story_file(name):
#     return os.path.join(fallback_story_files_dir, name)
# 
# Path: linux_story/step_helper_functions.py
# def unblock_cd_commands(line):
#     if line.startswith("mkdir") or \
#             (line.startswith("mv") and not line.strip() == 'mv --help'):
#         print _('Nice try! But you do not need that command for this challenge')
#         return True
#     return False


from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir
from linux_story.common import get_story_file
from linux_story.step_helper_functions import unblock_cd_commands
    deleted_items = ["~/town/east/shed-shop/Eleanor"]
    file_list = [
        {
            "path": "~/town/east/Eleanor",
            "contents": get_story_file("Eleanor"),
            "type": "file"
        }
    ]
    companion_speech = _("Eleanor: {{Bb:The library is over there!}}")

    def next(self):
        return 26, 2


class Step2(StepTemplateMkdir):
    story = [
        _("You see the {{bb:library}} ahead."),
        _("Eleanor: {{Bb:\"There it is! The}} {{bb:library}} " +\
        "{{Bb:is right there! Let's}} {{lb:go inside.}}{{Bb:\"}}")
    ]

    start_dir = "~/town/east"
    end_dir = "~/town/east/library"

    hints = [
        _("{{rb:Use}} {{yb:cd library}} {{rb:to go inside the library.}}")
    ]
    companion_speech = _("Eleanor: {{Bb:I love the library! Let's go inside!}}")

    def block_command(self, line):

# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard
# 
# Path: linux_story/common.py
# def get_story_file(name):
#     return os.path.join(fallback_story_files_dir, name)
# 
# Path: linux_story/step_helper_functions.py
# def unblock_cd_commands(line):
#     if line.startswith("mkdir") or \
#             (line.startswith("mv") and not line.strip() == 'mv --help'):
#         print _('Nice try! But you do not need that command for this challenge')
#         return True
#     return False


# Path: linux_story/story/challenges/challenge_26.py
from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir
from linux_story.common import get_story_file
from linux_story.step_helper_functions import unblock_cd_commands

    deleted_items = ["~/town/east/shed-shop/Eleanor"]
    file_list = [
        {
            "path": "~/town/east/Eleanor",
            "contents": get_story_file("Eleanor"),
            "type": "file"
        }
    ]
    companion_speech = _("Eleanor: {{Bb:The library is over there!}}")

    def next(self):
        return 26, 2


class Step2(StepTemplateMkdir):
    story = [
        _("You see the {{bb:library}} ahead."),
        _("Eleanor: {{Bb:\"There it is! The}} {{bb:library}} " +\
        "{{Bb:is right there! Let's}} {{lb:go inside.}}{{Bb:\"}}")
    ]

    start_dir = "~/town/east"
    end_dir = "~/town/east/library"

    hints = [
        _("{{rb:Use}} {{yb:cd library}} {{rb:to go inside the library.}}")
    ]
    companion_speech = _("Eleanor: {{Bb:I love the library! Let's go inside!}}")

    def block_command(self, line):

        return unblock_cd_commands(line)