
    Rpf                     2    d Z ddlZddlmZ ej        Zd ZdS )z3Internal helper for running tests on Windows Bazel.    N)flagsc                    t           j        dk    r| dz  } t           j                            t          j        d          }t           j        d         }d                    ||           }t          |d          5 }|D ]_}|	                                
                    d          }t          |          dk    r=||d	         k    r|d
         c cddd           S `	 ddd           n# 1 swxY w Y   t          d                    | |                    t          }t          t                              d          d
z             D ]!}t           j                            |          }"|}	t           j                            |	|           S )a  Returns the executable path of a py_binary.

  This returns the executable path of a py_binary that is in another Bazel
  target's data dependencies.

  On Linux/macOS, the path and __file__ has the same root directory.
  On Windows, bazel builds an .exe file and we need to use the MANIFEST file
  the location the actual binary.

  Args:
    py_binary_name: string, the name of a py_binary that is in another Bazel
        target's data dependencies.

  Raises:
    RuntimeError: Raised when it cannot locate the executable path.
  ntz.exeMANIFESTTEST_WORKSPACEz{}/{}r    r      Nz8Cannot locate executable path for {}, MANIFEST file: {}..)osnamepathjoinFLAGStest_srcdirenvironformatopenstripsplitlenRuntimeError__file__range__name__countdirname)
py_binary_namemanifest_fileworkspace_namemanifest_entrymanifest_fdlinetokensr   _root_directorys
             ^/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/absl/testing/_bazelize_command.pyget_executable_pathr)      s   $ W__fNGLL!2J??MZ 01N^^NNCCN	mS	!	! [  $##C((v;;!
VAY&&

       
 '	               BIIM	+ 	+, , , D 8>>#&&*++ # #W__T""ddN7<<777s   9AC)C))C-0C-)__doc__r   abslr   r   r)        r(   <module>r.      sH    : 9 				      ,8 ,8 ,8 ,8 ,8r-   