o
    wZh                     @   s6   d dl Z d dlZd dlZd dlZde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/auris/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   r   listr   r   r   r   r   r
   <module>   s
    