@staticmethod
    def _generate_path_from_repo_url(base_sys_path, url):
        url_components = urlparse(url)
        url_full_path_parts = url_components.path.split('/')
        repo_name = url_full_path_parts[-1].split('.')[0]
        url_folder_path_parts = url_full_path_parts[:-1]
        repo_directory = os.path.join(
            base_sys_path,
            url_components.netloc.replace(':', ''),  # remove colons from netloc (e.g. turn example:8000 to example8000)
            *url_folder_path_parts
        )
        # remove '-'s as PHP Intl extension doesn't appear to work if the repo is in a directory with a dash in the path
        return os.path.join(repo_directory, repo_name).replace('-', '')
Generate a sys path based on the base_sys_path and the git repo url. It also removes some invalid
dataset/ETHPy150Open box/ClusterRunner/app/project_type/git.py/Git._generate_path_from_repo_url