a
    ën§aÉ	  ã                   @  s~   d dl mZ d dlZe e¡Zd dlZd dlmZm	Z	m
Z
mZmZmZ e	e	eeƒƒƒZdZddœdd„Zdd
ddœdd„ZdS )é    )ÚannotationsN)ÚabspathÚdirnameÚisdirÚjoinÚnormpathÚrealpath)Ú	serverdirÚ
bokehjsdirÚstr)Úreturnc                  C  s(   t tdƒ} t| ƒ} tjdkr$t| ƒ} | S )z/ Get the location of the server subpackage
    ZserverÚcygwin)r   ÚROOT_DIRr   ÚsysÚplatformr   )Úpath© r   ú/lib/python3.9/site-packages/bokeh/util/paths.pyr	   /   s    
r	   FÚbool)Údevr   c                 C  s2   t tdddƒ}t tƒ dƒ}| r*t|ƒr*|S |S dS )z¦ Get the location of the bokehjs source files. If dev is True,
    the files in bokehjs/build are preferred. Otherwise uses the files
    in bokeh/server/static.
    z..ZbokehjsZbuildZstaticN)r   r   r	   r   )r   Zdir1Zdir2r   r   r   r
   8   s
    r
   )F)Z
__future__r   ZloggingZ	getLoggerÚ__name__Úlogr   Úos.pathr   r   r   r   r   r   Ú__file__r   Ú__all__r	   r
   r   r   r   r   Ú<module>   s   
 		