From ec1a274181837b188b4019613ef72bb06484b08c Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Tue, 16 May 2023 01:40:51 +0900 Subject: [PATCH] correct path --data-dir --- scripts/ch_lib/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ch_lib/model.py b/scripts/ch_lib/model.py index 729012d..894fda0 100644 --- a/scripts/ch_lib/model.py +++ b/scripts/ch_lib/model.py @@ -3,11 +3,11 @@ import os import json from . import util -from modules import shared +from modules import shared, paths_internal # this is the default root path -root_path = os.getcwd() +root_path = paths_internal.data_path # if command line arguement is used to change model folder, # then model folder is in absolute path, not based on this root path anymore.