update code of cloning locon scripts
This commit is contained in:
parent
6bcd52c9cc
commit
cdb8bb1182
@ -46,15 +46,16 @@ document_symbol = '\U0001F4C4' # 📄
|
|||||||
path_of_this_folder = os.getcwd()
|
path_of_this_folder = os.getcwd()
|
||||||
|
|
||||||
def getlocon(existance):
|
def getlocon(existance):
|
||||||
|
now_path = os.getcwd()
|
||||||
if existance:
|
if existance:
|
||||||
print('Checking LoCon script version...')
|
print('Checking LoCon script version...')
|
||||||
now_path = os.getcwd()
|
|
||||||
os.chdir(os.path.join(path_of_this_folder, 'locon'))
|
os.chdir(os.path.join(path_of_this_folder, 'locon'))
|
||||||
os.system('git pull')
|
os.system('git pull')
|
||||||
os.chdir(now_path)
|
os.chdir(now_path)
|
||||||
else:
|
else:
|
||||||
os.system('git clone https://github.com/KohakuBlueleaf/LoCon.git')
|
os.chdir(path_of_this_folder)
|
||||||
os.system('ren '+ os.path.join(path_of_this_folder, 'LoCon') +' locon')
|
os.system('git clone https://github.com/KohakuBlueleaf/LoCon.git locon')
|
||||||
|
os.chdir(now_path)
|
||||||
|
|
||||||
def save_configuration(
|
def save_configuration(
|
||||||
save_as,
|
save_as,
|
||||||
|
Loading…
Reference in New Issue
Block a user