remove extra local variable
This commit is contained in:
parent
64783dd9cc
commit
1a7ffa2c76
|
@ -28,9 +28,8 @@ parser_pre.add_argument("--models-dir", type=str, default=None, help="base path
|
||||||
cmd_opts_pre = parser_pre.parse_known_args()[0]
|
cmd_opts_pre = parser_pre.parse_known_args()[0]
|
||||||
|
|
||||||
data_path = cmd_opts_pre.data_dir
|
data_path = cmd_opts_pre.data_dir
|
||||||
models_override = cmd_opts_pre.models_dir
|
|
||||||
|
|
||||||
models_path = models_override if models_override else os.path.join(data_path, "models")
|
models_path = cmd_opts_pre.models_dir if cmd_opts_pre.models_dir else os.path.join(data_path, "models")
|
||||||
extensions_dir = os.path.join(data_path, "extensions")
|
extensions_dir = os.path.join(data_path, "extensions")
|
||||||
extensions_builtin_dir = os.path.join(script_path, "extensions-builtin")
|
extensions_builtin_dir = os.path.join(script_path, "extensions-builtin")
|
||||||
config_states_dir = os.path.join(script_path, "config_states")
|
config_states_dir = os.path.join(script_path, "config_states")
|
||||||
|
|
Loading…
Reference in New Issue