From: piegames Date: Mon, 21 Jun 2021 20:31:51 +0000 (+0200) Subject: Print paths as absolute X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99aca04638a9879d1d4a24cf4c0e67d5b07f905a;p=SymbiYosys.git Print paths as absolute This generally makes debugging path issues easier. --- diff --git a/sbysrc/sby.py b/sbysrc/sby.py index 2ed7e68..ceacdf1 100644 --- a/sbysrc/sby.py +++ b/sbysrc/sby.py @@ -345,7 +345,7 @@ def run_job(taskname): shutil.move(my_workdir, "{}.bak{:03d}".format(my_workdir, backup_idx)) if opt_force and not reusedir: - early_log(my_workdir, "Removing directory '{}'.".format(my_workdir)) + early_log(my_workdir, "Removing directory '{}'.".format(os.path.abspath(my_workdir))) if sbyfile: shutil.rmtree(my_workdir, ignore_errors=True) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index eac1bfd..d5d8184 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -331,7 +331,7 @@ class SbyJob: if basedir != "" and not os.path.exists(basedir): os.makedirs(basedir) - self.log("Copy '{}' to '{}'.".format(srcfile, dstfile)) + self.log("Copy '{}' to '{}'.".format(os.path.abspath(srcfile), os.path.abspath(dstfile))) copyfile(srcfile, dstfile) def handle_str_option(self, option_name, default_value):