File: //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/bootstrap.pyo
�
��4]c           @   s�   d  Z  d d l Z d d l Z e �  d Z e �  d Z d �  Z e d k rv e d � e j d <e d	 � e j d
 <n e d e � � d S(   s�  
Bootstrapper for test framework plugins.
The entire rationale for this system is to get the modules in plugin/
imported without importing all of the supporting library, so that we can
set up things for testing before coverage starts.
The rationale for all of plugin/ being *in* the supporting library in the
first place is so that the testing and plugin suite is available to other
libraries, mainly external SQLAlchemy and Alembic dialects, to make use
of the same test environment and standard suites available to
SQLAlchemy/Alembic themselves without the need to ship/install a separate
package outside of SQLAlchemy.
NOTE:  copied/adapted from SQLAlchemy master for backwards compatibility;
this should be removable when Alembic targets SQLAlchemy 1.0.0.
i����Nt   bootstrap_filet   to_bootstrapc         C   s�   t  j j t  j j t � d |  � } t j d k r_ d d l m } | j	 |  | � j
 �  } n d d  l } | j |  | � } | S(   Ns   %s.pyi   i����(   t	   machinery(   i   i   (
   t   ost   patht   joint   dirnameR    t   syst   version_infot	   importlibR   t   SourceFileLoadert   load_modulet   impt   load_source(   t   nameR   R   t   modR   (    (    sV   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/bootstrap.pyt   load_file_as_module   s    %t   pytestt   plugin_baset   sqla_plugin_baset   pytestplugint   sqla_pytestplugins   unknown bootstrap: %s(	   t   __doc__R   R   t   localsR    R   R   t   modulest	   Exception(    (    (    sV   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/bootstrap.pyt   <module>   s