403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.142.55.180
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/util/__pycache__/editor.cpython-311.pyc
�

��bg�	���ddlmZddlZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	l	mZdd
l	m
Z
ddlmZdd
lmZ	ddd�Zdd�Zdd�Zd d�ZdS)!�)�annotationsN)�exists)�join)�splitext)�
check_call)�Dict)�List)�Mapping)�Optional���is_posix)�CommandError�filename�str�environ�Optional[Dict[str, str]]�return�Nonec��|�tjn|}	t|��}t||g��dS#t$r}td|�d���|�d}~wwxYw)a�
    Opens the given file in a text editor. If the environment variable
    ``EDITOR`` is set, this is taken as preference.

    Otherwise, a list of commonly installed editors is tried.

    If no editor matches, an :py:exc:`OSError` is raised.

    :param filename: The filename to open. Will be passed  verbatim to the
        editor command.
    :param environ: An optional drop-in replacement for ``os.environ``. Used
        mainly for testing.
    NzError executing editor (�))�osr�_find_editorr�	Exceptionr)rr�env�editor�excs     �J/opt/cloudlinux/venv/lib64/python3.11/site-packages/alembic/util/editor.py�open_in_editorrs{��  ��"�*�*�W�C�L��c�"�"���F�H�%�&�&�&�&�&���L�L�L��l�C�C�C�A�B�B��K�����L���s� 4�
A�A�A�Mapping[str, str]c�"�t��}td��D]H\}}||vr?||}t|��r|cStj|vr|�||���I|D]}t
||��}|�|cS�td���)N)�EDITOR�VISUALzSNo suitable editor found. Please set the "EDITOR" or "VISUAL" environment variables)�_default_editors�	enumeraterr�sep�insert�_find_executable�OSError)r�
candidates�i�var�user_choice�	candidate�paths       rrr)s���!�#�#�J��0�1�1�2�2���3��'�>�>�!�#�,�K��k�"�"�
#�"�"�"�"��v�[�(�(��!�!�!�[�1�1�1�����	��	�7�3�3�����K�K�K��
�	5����r.�
Optional[str]c��tst|��ddkr|dz
}|�dd���tj��D]%}t
||��}t|��r|cS�&dS)Nrz.exe�PATH�)rr�get�splitr�pathseprr)r.rr/�values    rr(r(=s���
����+�+�A�.�&�8�8��V��	����F�B�'�'�-�-�b�j�9�9�����T�9�%�%���%�=�=�	��L�L�L�	��4r0�	List[str]c� �trgd�Sgd�S)N)zsensible-editorr�nano�vim�code)zcode.exez
notepad++.exeznotepad.exer
�r0rr$r$Ks$���<�C�C�C�C�;�;�;�;r0)N)rrrrrr)rr rr)r.rrr rr1)rr9)�
__future__rr�os.pathrrr�
subprocessr�typingrr	r
r�compatrrrrrr(r$r>r0r�<module>rDs=��"�"�"�"�"�"�	�	�	�	�������������������!�!�!�!�!�!�������������������������������������8<�L�L�L�L�L�0����(����<�<�<�<�<�<r0

Youez - 2016 - github.com/yon3zu
LinuXploit