From 2d769fc20a59a017b215e0f0ad6f85cd463a9606 Mon Sep 17 00:00:00 2001 From: Ankush Vangari Date: Tue, 16 Apr 2024 09:55:53 -0700 Subject: [PATCH] Fix absolute path --- modelscan/modelscan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscan/modelscan.py b/modelscan/modelscan.py index c25f771..228759b 100644 --- a/modelscan/modelscan.py +++ b/modelscan/modelscan.py @@ -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