You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
243 B
Python
9 lines
243 B
Python
4 years ago
|
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))
|