Create install_plugin_dependencies.py
Browse files
install_plugin_dependencies.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
for root, dirs, files in os.walk('./cat/plugins'):
|
| 4 |
+
for file in files:
|
| 5 |
+
if file == 'requirements.txt':
|
| 6 |
+
req_file = os.path.join(root, file)
|
| 7 |
+
os.system(f'pip install --no-cache-dir -r "{req_file}"')
|