o
    ki                     @   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   sx   t  tj t  g t  g tjtjtj	g } t
dd | D dd}tdd |D s5tddd	 |D S )
Nc                 S   s   h | ]}t j|qS  )ospathabspath.0ir   r   f/var/www/addictedbytheproject.nl/epg/venv/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>z!all path_prefixes must be stringsc                 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)	raw_pathspath_prefixesr   r   r
   _prefix_regex   s   r   )r   r   r   r   listr   r   r   r   r   r
   <module>   s
    