Skip to content

Commit

Permalink
Merge branch 'update-script' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
jn-jairo committed Nov 6, 2023
2 parents 6eb1095 + 1fc2035 commit eab2c06
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ def update_repo(fullpath):

if os.path.isdir(git_path):
print(fullpath)

subprocess.run("git pull", shell=True, cwd=fullpath)

if os.path.exists(requirements_path):
subprocess.run("pip install -r requirements.txt", shell=True, cwd=fullpath)
if os.path.exists(requirements_path):
print(fullpath)
subprocess.run("pip install -r requirements.txt", shell=True, cwd=fullpath)

def update_custom_nodes():
for filename in sorted(os.listdir(os.path.join(BASE_PATH, "custom_nodes"))):
fullpath = os.path.join(BASE_PATH, "custom_nodes", filename)

update_repo(fullpath)

update_repo(BASE_PATH)
def update_base():
update_repo(BASE_PATH)

update_base()

update_custom_nodes()

0 comments on commit eab2c06

Please sign in to comment.