ó
mÜJ]c           @` sÎ   d  Z  d d l m Z m Z m Z m Z d d l Z e j e ƒ Z	 d d l
 Z
 d d l m Z d d l m Z d d l m Z m Z d d l m Z d d	 l m Z d Z d „  Z d e f d „  ƒ  YZ d S(   ue  

To display information about Bokeh and Bokeh server configuration,
type ``bokeh info`` on the command line.

.. code-block:: sh

    bokeh info

This will print general information to standard output, such as Python and Bokeh versions:

.. code-block:: none

    Python version      :  3.6.5
    IPython version     :  6.3.1
    Bokeh version       :  0.12.15
    BokehJS static path :  /opt/anaconda/lib/python3.6/site-packages/bokeh/server/static
    node.js version     :  v8.11.1
    npm version         :  5.8.0

Sometimes it can be useful to get just paths to the BokehJS static files in order
to configure other servers or processes. To do this, use the ``--static`` option

.. code-block:: sh

    bokeh info --static

This will produce output like what is shown below

.. code-block:: none

    /opt/anaconda/lib/python3.6/site-packages/bokeh/server/static

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   __version__(   t   settings(   t   nodejs_versiont   npmjs_version(   t   import_optionali   (   t
   Subcommandu   Infoc         C` s#   t  |  ƒ } | r t | | ƒ Sd  S(   N(   R   t   getattr(   t   modnamet   attrt   mod(    (    s=   lib/python2.7/site-packages/bokeh/command/subcommands/info.pyt   _versionO   s    t   Infoc           B` sA   e  Z d  Z d Z d Z d e d d d d ƒ f f Z d „  Z RS(	   uR    Subcommand to print information about Bokeh and Bokeh server configuration.

    u   infou<   print information about Bokeh and Bokeh server configurationu   --statict   actionu
   store_truet   helpu+   Print the locations of BokehJS static filesc         C` sÑ   | j  r t t j ƒ  ƒ n± d „  } t d t j j d ƒ d ƒ t d | t d d ƒ ƒ ƒ t d | t d	 d
 ƒ ƒ ƒ t d t ƒ t d t j ƒ  ƒ t d | t	 ƒ  ƒ ƒ t d | t
 ƒ  ƒ ƒ d S(   u
   

        c         S` s
   |  p	 d S(   Nu   (not installed)(    (   t   version_or_none(    (    s=   lib/python2.7/site-packages/bokeh/command/subcommands/info.pyt   <lambda>r   t    u   Python version      :  %su   
i    u   IPython version     :  %su   IPythonu   __version__u   Tornado version     :  %su   tornadou   versionu   Bokeh version       :  %su   BokehJS static path :  %su   node.js version     :  %su   npm version         :  %sN(   t   statict   printR   t
   bokehjsdirt   syst   versiont   splitR   R   R   R   (   t   selft   argst   if_installed(    (    s=   lib/python2.7/site-packages/bokeh/command/subcommands/info.pyt   invokek   s    		(   t   __name__t
   __module__t   __doc__t   nameR   t   dictR   R   (    (    (    s=   lib/python2.7/site-packages/bokeh/command/subcommands/info.pyR   X   s   	(   u   Info(   R!   t
   __future__R    R   R   R   t   loggingt	   getLoggerR   t   logR   t   bokehR   t   bokeh.settingsR   t   bokeh.util.compilerR   R   t   bokeh.util.dependenciesR   t
   subcommandR	   t   __all__R   R   (    (    (    s=   lib/python2.7/site-packages/bokeh/command/subcommands/info.pyt   <module>(   s   "		