o
    i                     @   s@   d dl Z d dlZd dlZd dlZd dlZdeje f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 s3J dd |D S )	Nc                 S   s   h | ]}t j|qS  )ospathabspath.0ir   r   k/var/www/html/eduruby.in/lip-sync/lip-sync-env/lib/python3.10/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)Z	raw_pathsZpath_prefixesr   r   r
   _prefix_regex	   s   r   )r   r   r   typingr   Listr   r   r   r   r   r
   <module>   s    