Skip to content

Commit af5e599

Browse files
fix: expand python path (fixes #36)
1 parent 15811d1 commit af5e599

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbom4python/scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
self.set_lifecycle(lifecycle)
6565
self.metadata = {}
6666
self.use_pip = use_pip
67-
self.python_path = pathlib.Path(python_path)
67+
self.python_path = pathlib.Path(python_path).expanduser()
6868

6969
def set_parent(self, module):
7070
self.parent = f"Python-{module}"

0 commit comments

Comments
 (0)