This website works better with JavaScript.
Home
Help
Sign In
ryanreed
/
python-transpose
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
11
Activity
Browse Source
Resolving paths rather than using relative
pull/2/head
Ryan Reed
2 years ago
parent
c25af8fccb
commit
5a29651cd1
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/transpose/utils.py
+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
(
)
Write
Preview
Loading…
Cancel
Save