# Path: linux_story/PlayerLocation.py
# def generate_real_path(fake_path):
#     return fake_path.replace('~', fake_home_dir)


import ast
import os
import time
from linux_story.PlayerLocation import generate_real_path
            )
            self.send_hint(hint)
            return False

        elif self.get_save_prompt_showing():
            if self.get_nano_content().strip() == self.get_goal_nano_end_content():
                hint = (
                    _("\n{{gb:Press}} {{ob:Y}} {{gb:to confirm that you want to save.}}")
                )
            else:
                hint = (
                    _("\n{{rb:Your text is not correct! Press}} {{yb:N}} {{rb:to exit nano.}}")
                )
            self.send_hint(hint)
            return False

        elif self.get_nano_content().strip() == self.get_goal_nano_end_content():
            hint = \
                _("\n{{gb:Excellent, you typed}} {{yb:%s}}{{gb:. Now press}} {{yb:Ctrl X}} {{gb:to exit.}}") \
                % self.get_goal_nano_end_content()
            self.send_hint(hint)
            return False

        return False

    def check_nano_input(self):
        """This is not called anywhere by default. The intention is that is
        this is called after nano has been closed in check_command.
        """


# Path: linux_story/PlayerLocation.py
# def generate_real_path(fake_path):
#     return fake_path.replace('~', fake_home_dir)


# Path: linux_story/story/StepNano.py
import ast
import os
import time
from linux_story.PlayerLocation import generate_real_path

            )
            self.send_hint(hint)
            return False

        elif self.get_save_prompt_showing():
            if self.get_nano_content().strip() == self.get_goal_nano_end_content():
                hint = (
                    _("\n{{gb:Press}} {{ob:Y}} {{gb:to confirm that you want to save.}}")
                )
            else:
                hint = (
                    _("\n{{rb:Your text is not correct! Press}} {{yb:N}} {{rb:to exit nano.}}")
                )
            self.send_hint(hint)
            return False

        elif self.get_nano_content().strip() == self.get_goal_nano_end_content():
            hint = \
                _("\n{{gb:Excellent, you typed}} {{yb:%s}}{{gb:. Now press}} {{yb:Ctrl X}} {{gb:to exit.}}") \
                % self.get_goal_nano_end_content()
            self.send_hint(hint)
            return False

        return False

    def check_nano_input(self):
        """This is not called anywhere by default. The intention is that is
        this is called after nano has been closed in check_command.
        """


        end_path = generate_real_path(self.get_goal_nano_filepath())