13 lines
348 B
Python
13 lines
348 B
Python
import shutil
|
|
import logging
|
|
|
|
log = logging.getLogger('stl')
|
|
|
|
def copy_stl(stl, case):
|
|
stl_dir = case.joinpath('constant', 'triSurface')
|
|
if stl_dir.exists():
|
|
log.info(f'Deleting stl directory ({stl_dir})')
|
|
shutil.rmtree(stl_dir)
|
|
|
|
log.info(f'Copying stl directory ({stl} -> {stl_dir})')
|
|
shutil.copytree(stl, stl_dir)
|