Skip to content

Commit

Permalink
Fix Absolute Path (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushvangari authored Apr 16, 2024
1 parent 35ba457 commit d2aa1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelscan/modelscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _scan_source(
def _generate_results(self) -> Dict[str, Any]:
report: Dict[str, Any] = {}

absolute_path = Path(self._input_path)
absolute_path = Path(self._input_path).absolute()
if Path(self._input_path).is_file():
absolute_path = Path(absolute_path).parent

Expand Down

0 comments on commit d2aa1a5

Please sign in to comment.