
    Xh                     6    d dl Z d dlZd dlmZ d dlmZmZ d Zy)    N)Path)NamedTemporaryFilemkdtempc                    t        j                         dk(  rd| j                  _        d| j                  _        d| j                  _        d| j                  _        t        t        t              j                        | j                  _        t        d      | j                  _        t!        dd	      5 }|j#                  d
       |j$                  }ddd       dddgi| j                  _        t(        j*                  j-                  dt        d            | j                  _        d| j0                  _        d| j                  _        d| j                  _        d| j                  _        y# 1 sw Y   xY w)ar  Helper to configure the Jupyter Server for integration testing
    with Galata.

    By default the tests will be executed in the OS temporary folder. You
    can override that folder by setting the environment variable ``JUPYTERLAB_GALATA_ROOT_DIR``.

    .. warning::

        Never use this configuration in production as it will remove all security protections.
    jovyanz0.0.0.0i"  r   Fzgalata-workspaces-)prefixw)modedeletez	PS1="$ "
Nshell_commandz	/bin/bashz--rcfileJUPYTERLAB_GALATA_ROOT_DIRzgalata-test- T)getpassgetuser	ServerAppipportport_retriesopen_browserstrr   __file__parentLabServerAppextra_labextensions_pathr   LabAppworkspaces_dirr   writenameterminado_settingsosenvirongetroot_dirIdentityProvidertokenpassworddisable_check_xsrfexpose_app_in_browser)ctmprcfile_paths      N/var/www/html/myenv/lib/python3.12/site-packages/jupyterlab/galata/__init__.pyconfigure_jupyter_serverr-   
   s    H$"AKK AKK$AKK
 /2$x.2G2G.HANN+%-ABAHH	U	3 s		,hh '6ZQ\7]%^AKK"::>>$g^&DAKK  "AAKK%)AKK"%)AHH" s   5E//E8)r   r    pathlibr   tempfiler   r   r-        r,   <module>r2      s     	  0%*r1   