(log_dir, category="")
prepare directory
prepare directory
prepare directory
def prepare(log_dir, category=""):
    """
        prepare directory
    """
    subdir = os.path.join(log_dir, category)
    if not os.path.exists(subdir):
        os.mkdir(subdir)
def prepare ( log_dir , category = "" ) : subdir = os . path . join ( log_dir , category ) if not os . path . exists ( subdir ) : os . mkdir ( subdir )