From 1fc203514592b23f9ebdb23e34c00896617be9a7 Mon Sep 17 00:00:00 2001 From: Jairo Correa Date: Sun, 5 Nov 2023 21:14:00 -0300 Subject: [PATCH] Fix update requirements without git repository --- update.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/update.py b/update.py index f487619e681..a7f4833d269 100644 --- a/update.py +++ b/update.py @@ -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()