Add indication which file is overwriting the config

This commit is contained in:
Markus Wegmann 2016-12-29 23:27:21 +01:00
parent 7ff400071f
commit 6a6e2022b7

View file

@ -79,7 +79,7 @@ def main():
def overwriteConfig(new_config_path, littleRISCV_path):
print("Overwriting current config (include/riscv_config.sv) with new one.")
print("Overwriting current config (include/riscv_config.sv) with new one ({})".format(new_config_path))
shutil.move(os.path.abspath(littleRISCV_path + "/include/riscv_config.sv"), os.path.abspath(littleRISCV_path + "/include/riscv_config.sv.bak")) # Backup
shutil.copy(os.path.abspath(new_config_path), os.path.abspath(littleRISCV_path + "/include/riscv_config.sv")) # Copy new config to littleRISCV