@@ -58,7 +58,8 @@ def format_help(self, ctx: Context, formatter: HelpFormatter) -> None:
58
58
if repo and repo in repos and is_installed (repo ):
59
59
self .name = 'train' if self .name == 'search' else self .name
60
60
script = osp .join (
61
- get_installed_path (repo ), f'tools/{ self .name } .py' )
61
+ get_installed_path (repo ), '.mim' , 'tools' ,
62
+ f'{ self .name } .py' )
62
63
ret = subprocess .check_output (
63
64
['python' , '-u' , script , '--help' ])
64
65
color_echo (
@@ -82,7 +83,7 @@ def format_help(self, ctx: Context, formatter: HelpFormatter) -> None:
82
83
if command :
83
84
repo_root = get_installed_path (repo )
84
85
files = recursively_find (
85
- osp .join (repo_root , 'tools' ), command + '.py' )
86
+ osp .join (repo_root , '.mim' , ' tools' ), command + '.py' )
86
87
if len (files ) == 0 :
87
88
exit_with_error (
88
89
f"The command { command } doesn't exist in codebase "
@@ -98,7 +99,7 @@ def format_help(self, ctx: Context, formatter: HelpFormatter) -> None:
98
99
click .echo (ret .decode ('utf-8' ))
99
100
else :
100
101
repo_root = get_installed_path (repo )
101
- tool_root = osp .join (repo_root , 'tools' )
102
+ tool_root = osp .join (repo_root , '.mim' , ' tools' )
102
103
walk_list = list (os .walk (tool_root ))
103
104
104
105
files = []
0 commit comments