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:
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user