3
ÌœŸW´  ã               @   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jt j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/venv/lib/python3.6/site-packages/mayavi/tests/common.pyÚfixpath   s    r   c             C   s   t jjd| ƒ}t j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   Ú
traits.apir   r   r   r   r   r   r   r   r   r   Ú<module>   s   