kira4424's picture
Duplicate from lewiswu1209/MockingBird
d59aeff
raw
history blame contribute delete
243 Bytes
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))