Skip to content

Commit 9438460

Browse files
committed
Use absolute paths everywhere for consistency
1 parent ec3638a commit 9438460

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

duplicate_code_detection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def run(fail_threshold, directories, files, ignore_directories, ignore_files,
117117
if len(source_code_files) < 2:
118118
print("Not enough source code files found")
119119
return (ReturnCode.BAD_INPUT, {})
120+
source_code_files = [os.path.abspath(f) for f in source_code_files]
120121

121122
# Get the absolute project root directory path to remove when printing out the results
122123
if project_root_dir:

0 commit comments

Comments
 (0)