o
    e                     @   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rAe  dS 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} ztj	| j
| jd W dS  tjy> } ztd| tjd td W Y d}~dS d}~ww )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   @D:\Projects\ConvertPro\env\Lib\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   	
