
    Mh                         d Z ddlZddlZddlmZmZ ej                            ej                            e	                    Z
ej                            e
dd          Zd ZddZdS )	z4A Jupyter-aware wrapper for the yarn package manager    N)
subprocesswhichstagingzyarn.jsc                 T   t          |           } t          j        dk    rsddl}ddl}t          j        | g|dd         z             }|                    |j        |j                   |	                                  |j
        |j                   dS t          j        | |           dS )a  Execvp, except on Windows where it uses Popen.

    The first argument, by convention, should point to the filename
    associated with the file being executed.

    Python provides execvp on Windows, but its behavior is problematic
    (Python bug#9148).
    ntr   N   )r   osnamesignalsysr   PopenSIGINTSIG_IGNwaitexit
returncodeexecvp)cmdargvr   r   ps        R/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/jupyterlab/jlpmapp.pyr   r      s     **C	w$


cUT!""X-.. 	fmV^444	
	#t    c                 d    | pt           j        dd         } t          ddt          g|            dS )zRun node and return the result.r   Nnode)r   r   r   	YARN_PATH)r   s    r   mainr   '   s8     38ABB<D
6FI--.....r   )N)__doc__r	   r   jupyterlab_server.processr   r   pathdirnameabspath__file__HEREjoinr   r   r    r   r   <module>r&      s    : : 				 


 7 7 7 7 7 7 7 7	wrwx0011GLLy)44	  0/ / / / / /r   