From 38218abedad13f19071db1c6049be75fc067eafc Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 9 Oct 2020 22:47:32 -0600 Subject: [PATCH] [Script] Narrow down file modification to XML files --- SCRIPT/repo_setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SCRIPT/repo_setup.py b/SCRIPT/repo_setup.py index 7966d06..84b487e 100644 --- a/SCRIPT/repo_setup.py +++ b/SCRIPT/repo_setup.py @@ -29,6 +29,9 @@ print("\nAdapting architecture templates..."); num_arch_file_processed = 0; for root, dirs, files in os.walk(openfpga_arch_template_dirpath): for src_file in files: + # Only focus on XML file + if not src_file.endswith(".xml"): + continue; # Copy the file des_file = openfpga_arch_adapted_dirpath + os.path.basename(src_file); shutil.copy(openfpga_arch_template_dirpath + src_file, des_file);