From 2a063076804c3514c5089514a6f36ae25a534bf3 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Mon, 15 Aug 2022 07:14:38 +0200 Subject: [PATCH] f4pga/common_modules/analysis: use Path.rename instead of shutil.move Signed-off-by: Unai Martinez-Corral --- f4pga/common_modules/analysis.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/f4pga/common_modules/analysis.py b/f4pga/common_modules/analysis.py index 065601c..5f3a2df 100644 --- a/f4pga/common_modules/analysis.py +++ b/f4pga/common_modules/analysis.py @@ -18,7 +18,6 @@ # SPDX-License-Identifier: Apache-2.0 from pathlib import Path -from shutil import move as sh_mv from f4pga.common import vpr_specific_values, vpr as common_vpr, VprArgs from f4pga.module import Module, ModuleContext @@ -57,10 +56,10 @@ class analysisModule(Module): ) if ctx.is_output_explicit('merged_post_implementation_v'): - sh_mv(analysis_merged_post_implementation_file(ctx), ctx.outputs.merged_post_implementation_v) + Path(analysis_merged_post_implementation_file(ctx)).rename(ctx.outputs.merged_post_implementation_v) if ctx.is_output_explicit('post_implementation_v'): - sh_mv(analysis_post_implementation_file(ctx), ctx.outputs.post_implementation_v) + Path(analysis_post_implementation_file(ctx)).rename(ctx.outputs.post_implementation_v) yield 'Saving log...' save_vpr_log('analysis.log', build_dir=build_dir)