
    Gh                         S r SSKrSSKrSSKJrJr  \R                  R                  \R                  R                  \	5      5      r
\R                  R                  \
SS5      rS rSS jrg)	z4A Jupyter-aware wrapper for the yarn package manager    N)
subprocesswhichstagingzyarn.jsc                 ^   [        U 5      n [        R                  S:X  ax  SSKnSSKn[
        R                  " U /USS -   5      nUR                  UR                  UR                  5        UR                  5         UR                  " UR                  5        g[        R                  " X5        g)zExecvp, 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        eC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\jupyterlab/jlpmapp.pyr   r      sx     *C	ww$cUT!"X-. 	fmmV^^4	
		#    c                 d    U =(       d    [         R                  SS n [        SS[        /U Q5        g)zRun node and return the result.r   Nnode)r   r   r   	YARN_PATH)r   s    r   mainr   '   s,     388AB<D
6FI--.r   )N)__doc__r	   r   jupyterlab_server.processr   r   pathdirnameabspath__file__HEREjoinr   r   r    r   r   <module>r&      sR    : 	  7	wwrwwx01GGLLy)4	0/r   