Skip to content

Commit 51702f2

Browse files
infinisilwhentze
authored andcommitted
Fully resolve mavenDir and gitlibsDir paths
Fixes #5
1 parent d917a1a commit 51702f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

locker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
result = {'maven': {}, 'git': {}}
1818

19-
mavenDir = args.home.joinpath('.m2', 'repository')
19+
mavenDir = args.home.joinpath('.m2', 'repository').resolve()
2020

2121
if mavenDir.exists():
2222
for f in mavenDir.rglob('*'):
@@ -27,7 +27,7 @@
2727
sha256_hash = sha256(f.read_bytes()).hexdigest()
2828
result['maven'][file] = sha256_hash
2929

30-
gitlibsDir = args.home.joinpath('.gitlibs')
30+
gitlibsDir = args.home.joinpath('.gitlibs').resolve()
3131

3232
if gitlibsDir.exists():
3333
for namespace_path in gitlibsDir.joinpath('libs').iterdir():

0 commit comments

Comments
 (0)