Browse Source

Resolving paths rather than using relative

pull/2/head
Ryan Reed 2 years ago
parent
commit
5a29651cd1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/transpose/utils.py
  2. +1
    -1
      tests/test_utils.py

+ 1
- 1
src/transpose/utils.py View File

@ -79,4 +79,4 @@ def symlink(target_path: Path, symlink_path: Path) -> None:
"""
Symlink a file or directory
"""
symlink_path.symlink_to(target_path)
symlink_path.symlink_to(target_path.resolve())

+ 1
- 1
tests/test_utils.py View File

@ -83,4 +83,4 @@ def test_file_symlink():
assert target_filepath.exists()
assert symlink_filepath.is_symlink()
assert symlink_filepath.readlink() == target_filepath
assert symlink_filepath.readlink() == target_filepath.resolve()

Loading…
Cancel
Save