mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-15 17:58:44 +00:00
Print paths as absolute
This generally makes debugging path issues easier.
This commit is contained in:
parent
66a458958d
commit
99aca04638
|
@ -345,7 +345,7 @@ def run_job(taskname):
|
||||||
shutil.move(my_workdir, "{}.bak{:03d}".format(my_workdir, backup_idx))
|
shutil.move(my_workdir, "{}.bak{:03d}".format(my_workdir, backup_idx))
|
||||||
|
|
||||||
if opt_force and not reusedir:
|
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:
|
if sbyfile:
|
||||||
shutil.rmtree(my_workdir, ignore_errors=True)
|
shutil.rmtree(my_workdir, ignore_errors=True)
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,7 @@ class SbyJob:
|
||||||
if basedir != "" and not os.path.exists(basedir):
|
if basedir != "" and not os.path.exists(basedir):
|
||||||
os.makedirs(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)
|
copyfile(srcfile, dstfile)
|
||||||
|
|
||||||
def handle_str_option(self, option_name, default_value):
|
def handle_str_option(self, option_name, default_value):
|
||||||
|
|
Loading…
Reference in a new issue