a
    «ˆc´  ã                   @   s8   d Z ddlZddlmZmZmZmZ dd„ Zdd„ Z	dS )z 
Common code for mayavi tests.

é    N)Ú	HasTraitsÚAnyÚEventÚCallablec                 C   s   t j t j t¡| ¡S )z•Given a relative file path it sets the path relative to this
    directory.  This allows us to run the tests from other directories
    as well.
    )ÚosÚpathÚjoinÚdirnameÚ__file__)Úfilename© r   úV/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/mayavi/tests/common.pyÚfixpath   s    r   c                 C   s   t j d| ¡}t j t|ƒ¡S )zhGiven a relative path to data inside the examples directory,
    obtains the full path to the file.
    Údata)r   r   r   Úabspathr   )ÚfnameÚpr   r   r   Úget_example_data   s    r   )
Ú__doc__Úos.pathr   Z
traits.apir   r   r   r   r   r   r   r   r   r   Ú<module>   s   