Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] decode URL encoded string in config path #192

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions mim/commands/download.py
Expand Up @@ -2,6 +2,7 @@
import os
import os.path as osp
from typing import List, Optional
from urllib.parse import unquote

import click

Expand Down Expand Up @@ -132,6 +133,7 @@ def download(package: str,

config_paths = model_info[config]['config']
for config_path in config_paths.split(','):
config_path = unquote(config_path)
installed_path = get_installed_path(package)
# configs will be put in package/.mim in PR #68
possible_config_paths = [
Expand Down