MockingBird/models/vocoder/hifigan/env.py
2022-12-03 16:54:06 +08:00

9 lines
243 B
Python

import os
import shutil
def build_env(config, config_name, path):
t_path = os.path.join(path, config_name)
if config != t_path:
os.makedirs(path, exist_ok=True)
shutil.copyfile(config, os.path.join(path, config_name))