
    Fd                     h    d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d Zedk    r e             dS dS )    N)glob)Pathc            
      .   t          t          j        dd                    } |                     d          D ]}t	          j        t          |          d          5 }	 |                                d         }t          j        	                    |d          }|
                    ||           }t          j        t          j        dd	d
d|g           t          j        |           t          j        t          j        	                    | |                     n# t"          $ r Y ddd           w xY w	 ddd           n# 1 swxY w Y   t          |  d          D ]2}t          j        t          j        dd	d
d|gt          j                   3dS )zv
    Installs dependencies for all plugins in the plugins dir.

    Args:
        None

    Returns:
        None
    PLUGINS_DIRpluginsz*.ziprr   zrequirements.txt)pathz-mpipinstallz-rNz/*/requirements.txt)stdout)r   osgetenvr   zipfileZipFilestrnamelistr	   joinextract
subprocess
check_callsys
executableremovermdirKeyErrorDEVNULL)plugins_dirpluginzfilebasedirbasereqs	extractedrequirements_files          OC:\Users\Administrator\Downloads\Auto-GPT-master\scripts\install_plugin_deps.pyinstall_plugin_dependenciesr%   	   s    ry	::;;K ""7++  _S[[#.. 	%
..**1-7<<1CDD!MM(MEE	%^T5)T9M   	)$$$k7;;<<<<   	 	 	 	 	 	 	 =	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 "["E"E"EFF 
 
^T5)T;LM%	
 	
 	
 	
 	

 
s7   EB;DE
D3%E2D33EE	
E	__main__)	r   r   r   r   r   pathlibr   r%   __name__     r$   <module>r+      s    				     



              
  
  
F z!!!!! r*   