import shutil shutil.copyfile('latent_preview.py', '../../latent_preview.py')