B
    d                 @   s   d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dd	lmZ e Zd
d Zedkr~e  dS )aK  TensorBoard main module.

This module ties together `tensorboard.program` and
`tensorboard.default_plugins` to provide standard TensorBoard. It's
meant to be tiny and act as little other than a config file. Those
wishing to customize the set of plugins or static assets that
TensorBoard uses can swap out this file with their own.
    N)app)default)main_lib)program)base_plugin)uploader_subcommand)
tb_loggingc           
   C   s|   t   tjt t gd} ytj	| j
| jd W n@ tjk
rv } z td| tjd td W dd}~X Y nX dS )z#Initializes flags and calls main().)pluginssubcommands)Zflags_parserz	Error: %s)file   N)r   Zglobal_initr   ZTensorBoardr   Zget_pluginsr   ZUploaderSubcommandr   runmain	configurer   Z
FlagsErrorprintsysstderrexit)tensorboarde r   B/var/www/html/venv/lib/python3.7/site-packages/tensorboard/main.pyrun_main%   s    r   __main__)__doc__r   Zabslr   r   r   r   r   Ztensorboard.pluginsr   Ztensorboard.uploaderr   Ztensorboard.utilr   Z
get_loggerloggerr   __name__r   r   r   r   <module>   s   