<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_base_path(path):
 """ Determines the longest possible beginning of a path that does not contain a %-Symbol. /this/is/a/pa%th would become /this/is/a :param str path: the path to get the base from :return: the path's base """

        if "%" not in path:
            return path

        path = os.path.split(path)[0]

        while "%" in path:
            path = os.path.split(path)[0]

        return path