From cdb8bb1182d2241872387b67c81a7f8748d5e90e Mon Sep 17 00:00:00 2001 From: Ki-wimon <40882134+Ki-wimon@users.noreply.github.com> Date: Wed, 1 Mar 2023 13:07:38 +0800 Subject: [PATCH] update code of cloning locon scripts --- lora_gui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lora_gui.py b/lora_gui.py index 6cf856e..ac3fc11 100644 --- a/lora_gui.py +++ b/lora_gui.py @@ -46,15 +46,16 @@ document_symbol = '\U0001F4C4' # 📄 path_of_this_folder = os.getcwd() def getlocon(existance): + now_path = os.getcwd() if existance: print('Checking LoCon script version...') - now_path = os.getcwd() os.chdir(os.path.join(path_of_this_folder, 'locon')) os.system('git pull') os.chdir(now_path) else: - os.system('git clone https://github.com/KohakuBlueleaf/LoCon.git') - os.system('ren '+ os.path.join(path_of_this_folder, 'LoCon') +' locon') + os.chdir(path_of_this_folder) + os.system('git clone https://github.com/KohakuBlueleaf/LoCon.git locon') + os.chdir(now_path) def save_configuration( save_as,