%PDF- %PDF-
Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/alembic/util/ |
Current File : //proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyo |
� �M!Vc @ s� d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d � Z d � Z d � Z d � Z d � Z d � Z d S( i����Ni ( t load_module_pyt load_module_pyc( t Templatec K sJ t | d � �5 } t d | � } | j | j | � j | � � Wd QXd S( Nt wbt filename( t openR t writet render_unicodet encode( t template_filet destt output_encodingt kwt ft template( ( sE /opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyt template_to_file s c C sJ t j j | � rF d | k rF d d l } | j | j d � � } n | S( s� Interpret a filename as either a filesystem location or as a package resource. Names that are non absolute paths and contain a colon are interpreted as resources and coerced to a file location. t :i����N( t ost patht isabst pkg_resourcest resource_filenamet split( t fnameR ( ( sE /opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyt coerce_resource_to_filename s c C s t j j r | d S| d Sd S( s6 Given a python source path, return the so-called "sourceless" .pyc or .pyo path. This just a .pyc or .pyo file where the .py file would be. Even with PEP-3147, which normally puts .pyc/.pyo files in __pycache__, this use case remains supported as a so-called "sourceless module import". t ot cN( t syst flagst optimize( R ( ( sE /opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyt simple_pyc_file_from_path s c C s<