mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-21 03:11:40 +08:00
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]
|
||||
|
||||
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_builtin_dir = os.path.join(script_path, "extensions-builtin")
|
||||
config_states_dir = os.path.join(script_path, "config_states")
|
||||
|
Loading…
Reference in New Issue
Block a user