o
    i 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)flags_parserz	Error: %s)file   N)r   global_initr   TensorBoardr   get_pluginsr   UploaderSubcommandr   runmain	configurer   
FlagsErrorprintsysstderrexit)tensorboarde r   ?/var/www/myenv/lib/python3.10/site-packages/tensorboard/main.pyrun_main%   s   r   __main__)__doc__r   abslr   r   r   r   r   tensorboard.pluginsr   tensorboard.uploaderr   tensorboard.utilr   
get_loggerloggerr   __name__r   r   r   r   <module>   s   	
