update code of cloning locon scripts

This commit is contained in:
Ki-wimon 2023-03-01 13:07:38 +08:00 committed by GitHub
parent 6bcd52c9cc
commit cdb8bb1182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,