diff options
author | Shyamnath Premnadh <[email protected]> | 2022-11-04 14:57:18 +0100 |
---|---|---|
committer | Shyamnath Premnadh <[email protected]> | 2022-11-07 08:39:53 +0100 |
commit | a4c087e783e16485afd7fbe113e734112e4d8661 (patch) | |
tree | 445782ff6a3365d84a30eee9b4052ed373539a54 /build_scripts/utils.py | |
parent | e9104aa2097526acfb048206426fc7578b561c4e (diff) |
pathlib: fix utils.py
- Amends 2afcf8e7545c681e412e5b6d04ab8867e5edd5c7
Pick-to: 6.4
Change-Id: I3b06bf3517dbab5d96c7b50a883716471376dbad
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'build_scripts/utils.py')
-rw-r--r-- | build_scripts/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py index 30dfe2672..0f5c2ef00 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -278,8 +278,8 @@ def copyfile(src, dst, force=True, _vars=None, force_copy_symlink=False, # the directory doesn't exist. link_target_path = src.resolve(strict=False) if link_target_path.parent == src.parent: - link_target = link_target_path.name - link_name = src.name + link_target = Path(link_target_path.name) + link_name = Path(src.name) current_directory = Path.cwd() try: target_dir = dst if dst.is_dir() else dst.parent |