Update install.py
This commit is contained in:
+5
-5
@@ -2,21 +2,21 @@ import os, git, sys
|
||||
sys.path.insert(0,os.path.join(os.path.dirname(os.path.realpath(__file__)),"..",".."))
|
||||
|
||||
def installer(custom_node_path):
|
||||
repo_url = 'https://github.com/jags111/ComfyUI_jags_Vectormagic.git/'
|
||||
repo_path = os.path.join(custom_node_path,"ComfyUI_jags_Vectormagic")
|
||||
repo_url = 'https://github.com/jags111/ComfyUI_Jags_VectorMagic.git/'
|
||||
repo_path = os.path.join(custom_node_path,"ComfyUI_Jags_VectorMagic")
|
||||
if os.path.exists(os.path.join(repo_path, '.git')):
|
||||
print("Updating ComfyUI_jags_Vectormagic")
|
||||
print("Updating ComfyUI_Jags_VectorMagic")
|
||||
repo:git.Repo = git.Repo(repo_path)
|
||||
origin = repo.remote(name='origin')
|
||||
origin.pull(rebase=True)
|
||||
repo.git.submodule('update','--init','--recursive')
|
||||
repo.close()
|
||||
else:
|
||||
print("Installing ComfyUI_jags_Vectormagic")
|
||||
print("Installing ComfyUI_Jags_VectorMagic")
|
||||
repo = git.Repo.clone_from(repo_url, repo_path)
|
||||
repo.git.clear_cache()
|
||||
repo.git.submodule('update','--init','--recursive')
|
||||
repo.close()
|
||||
|
||||
if 'custom_nodes' in os.getcwd():
|
||||
installer(os.path.join(os.getcwd(),".."))
|
||||
installer(os.path.join(os.getcwd(),".."))
|
||||
|
||||
Reference in New Issue
Block a user