File: //opt/alt/python27/lib/python2.7/site-packages/nose/importer.pyc
�
��SSc           @   s�   d  Z  d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z m	 Z	 m
 Z
 e j e � Z
 y e j j Z Wn e k
 r� d �  Z n Xd e f d �  �  YZ d d � Z d	 �  Z d S(
   s:  Implements an importer that looks only in specific path (ignoring
sys.path), and uses a per-path cache in addition to sys.modules. This is
necessary because test modules in different directories frequently have the
same names, which means that the first loaded would mask the rest when using
the builtin importer.
i����N(   t   Config(   t   find_modulet   load_modulet   acquire_lockt   release_lockc         C   s:   t  j j t  j j |  � � t  j j t  j j | � � k S(   N(   t   ost   patht   normcaset   realpath(   t   srct   dst(    (    s>