U
    9%e                     @   s@   d dl Z d dlZd dlZd dlZd dlZeje dddZdS )    N)returnc                  C   st   t  tj t  g t  g tjtjtj	g } t
dd | D dd}tdd |D sftdd |D S )	Nc                 S   s   h | ]}t j|qS  )ospathabspath.0ir   r   [/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/torch/profiler/python_tracer.py	<setcomp>   s     z _prefix_regex.<locals>.<setcomp>T)reversec                 s   s   | ]}t |tV  qd S )N)
isinstancestrr   r   r   r
   	<genexpr>   s     z _prefix_regex.<locals>.<genexpr>c                 S   s   g | ]}|t j qS r   )r   sepr   r   r   r
   
<listcomp>   s     z!_prefix_regex.<locals>.<listcomp>)sitegetsitepackagessysr   getuserbasegetusersitepackagesr   dirnametorch__file__sortedallAssertionError)Z	raw_pathsZpath_prefixesr   r   r
   _prefix_regex	   s    r   )r   r   r   typingr   Listr   r   r   r   r   r
   <module>   s
   