Repository: OpenBB-finance/OpenBBTerminal
File: openbb_terminal/terminal_controller.py (Python)

Code before:
        parser.add_argument(
            "-e",
            "--example",
            help="Run an example script to understand how routines can be used.",
            dest="example",
            action="store_true",
            default=False,
        )
        if other_args and "-" not in other_args[0][0]:
            other_args.insert(0, "--file")
        ns_parser = self.parse_known_args_and_warn(parser, other_args)

        if ns_parser:
            if ns_parser.example:
                path = MISCELLANEOUS_DIRECTORY / "routines" / "routine_example.openbb"
                console.print(
                    "[info]Executing an example, please type `about exe` "
                    "to learn how to create your own script.[/info]\n"
                )
                time.sleep(3)
            elif ns_parser.file:
                # if string is not in this format eg)"default/file.openbb" then check for files in ROUTINE_FILES
                # regex is used to match strings that start with C:/ and remove it so there won't be duplicates
                # for user who starts the string with Users/username
                file_path = " ".join(ns_parser.file)
                full_path = Path('C:/' + re.sub(r'^(C:\/?|c:\/?)', '', file_path).strip())
                hub_routine = file_path.split('/')
                if hub_routine[0] == 'default':
                    path = self.ROUTINE_DEFAULT_FILES.get(hub_routine[1], full_path)
                elif hub_routine[0] == 'personal':
                    path = self.ROUTINE_PERSONAL_FILES.get(hub_routine[1], full_path)
                else:
                    path = self.ROUTINE_FILES.get(file_path, full_path)

            else:
                return

            with open(path) as fp:
                raw_lines = [
                    x for x in fp if (not is_reset(x)) and ("#" not in x) and x
                ]
                raw_lines = [
                    raw_line.strip("\n")
                    for raw_line in raw_lines
                    if raw_line.strip("\n")
                ]

                lines = list()
                for rawline in raw_lines:
                    templine = rawline


Review comment (suggestion):
```suggestion
                full_path = file_path
```

Code after:
            dest="routine_args",
            type=lambda s: [str(item) for item in s.split(",")],
        )
        parser.add_argument(
            "-e",
            "--example",
            help="Run an example script to understand how routines can be used.",
            dest="example",
            action="store_true",
            default=False,
        )
        if other_args and "-" not in other_args[0][0]:
            other_args.insert(0, "--file")
        ns_parser = self.parse_known_args_and_warn(parser, other_args)

        if ns_parser:
            if ns_parser.example:
                routine_path = (
                    MISCELLANEOUS_DIRECTORY / "routines" / "routine_example.openbb"
                )
                console.print(
                    "[info]Executing an example, please type `about exe` "
                    "to learn how to create your own script.[/info]\n"
                )
                time.sleep(3)
            elif ns_parser.file:
                # if string is not in this format "default/file.openbb" then check for files in ROUTINE_FILES
                file_path = " ".join(ns_parser.file)
                full_path = file_path
                hub_routine = file_path.split("/")
                if hub_routine[0] == "default":
                    routine_path = Path(
                        self.ROUTINE_DEFAULT_FILES.get(hub_routine[1], full_path)
                    )
                elif hub_routine[0] == "personal":
                    routine_path = Path(
                        self.ROUTINE_PERSONAL_FILES.get(hub_routine[1], full_path)
                    )
                else:
                    routine_path = Path(self.ROUTINE_FILES.get(file_path, full_path))

            else:
                return

            with open(routine_path) as fp:
                raw_lines = [
                    x for x in fp if (not is_reset(x)) and ("#" not in x) and x
                ]
                raw_lines = [
                    raw_line.strip("\n")
                    for raw_line in raw_lines