From 216232aab65d19435943ae014b2cc4c2072d98a7 Mon Sep 17 00:00:00 2001 From: Henri Menke Date: Tue, 16 Jan 2024 17:30:23 +0100 Subject: [PATCH] Only use basename as target to copy seed and config (#71) --- python/solid_dmft/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/solid_dmft/main.py b/python/solid_dmft/main.py index dac731d2..839accfc 100644 --- a/python/solid_dmft/main.py +++ b/python/solid_dmft/main.py @@ -108,8 +108,8 @@ def main(argv=sys.argv): # Copies h5 archive and config file to subfolder if are not there for file in (general_params['seedname']+'.h5', general_params['config_file']): - if not os.path.isfile(general_params['jobname']+'/'+file): - shutil.copyfile(file, general_params['jobname']+'/'+file) + if not os.path.isfile(general_params['jobname']+'/'+os.path.basename(file)): + shutil.copyfile(file, general_params['jobname']+'/'+os.path.basename(file)) mpi.barrier() # Runs dmft_cycle