Avoid installing dependencies on every run

It looks like the `install.py` is imported from `__init__.py`, which means every time this plugin is loaded, it'll trigger a bunch of `pip install`s.
This commit is contained in:
Alex Kotliarskyi
2024-02-27 12:06:30 -08:00
committed by GitHub
parent 681d977c2c
commit 6e27f7daa2
+2 -1
View File
@@ -14,4 +14,5 @@ def ensure_package():
cmds = build_pip_install_cmds(['-r', 'requirements.txt'])
subprocess.run(cmds, cwd=custom_nodes_path)
ensure_package()
if __name__ == "__main__":
ensure_package()