a
    ]Dfy                     @  s   d dl mZ d dlZeeZd dlmZ ddlm	Z	 ee
  jjZdZddd	d
ZddddZddddddZddddZddddddZdS )    )annotationsN)Path   )
deprecated)bokehjs_path
bokehjsdirserver_path	serverdirstatic_pathr   )returnc                   C  s   t d S )z1 Get the location of the server subpackage.

    server)ROOT_DIR r   r   ]/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/bokeh/util/paths.pyr   -   s    r   c                   C  s
   t  d S )z5 Get the location of server's static directory.

    Zstatic)r   r   r   r   r   r
   3   s    r
   Fbool)devr   c                 C  s8   | r2t jjd d }| r |S td| d t S )a   Get the location of the bokehjs source files.

    By default the files in ``bokeh/server/static`` are used.  If ``dev``
    is ``True``, then the files in ``bokehjs/build`` preferred. However,
    if not available, then a warning is issued and the former files are
    used as a fallback.

    .. note:
        This is a low-level API. Prefer using ``settings.bokehjs_path()``
        instead of this function.
    Zbokehjsbuildzbokehjs' build directory 'z+' doesn't exist; required by 'settings.dev')r   parentis_dirlogwarningr
   )r   Zjs_dirr   r   r   r   9   s    r   strc                   C  s   t ddd tt S )zr Get the location of the server subpackage.

    .. deprecated:: 3.4.0
        Use ``server_path()`` instead.
          r   zserverdir()zserver_path())r   r   r   r   r   r   r   r	   R   s    r	   c                 C  s   t ddd tt| S )a   Get the location of the bokehjs source files.

    By default the files in ``bokeh/server/static`` are used.  If ``dev``
    is ``True``, then the files in ``bokehjs/build`` preferred. However,
    if not available, then a warning is issued and the former files are
    used as a fallback.

    .. note:
        This is a low-level API. Prefer using ``settings.bokehjsdir()``
        instead of this function.

    .. deprecated:: 3.4.0
        Use ``bokehjs_path()`` instead.
    r   zbokehjsdir()zbokehjs_path())r   r   r   )r   r   r   r   r   [   s    r   )F)F)
__future__r   logging	getLogger__name__r   pathlibr   deprecationr   __file__absoluteresolver   r   __all__r   r
   r   r	   r   r   r   r   r   <module>   s   
	