Skip to content

Commit e4f3908

Browse files
committed
Fix str path bug
1 parent 34a7ed1 commit e4f3908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def extract_urls(discover_path):
3838
max_strlen = -1
3939
for root, dirs, files in os.walk(discover_path, topdown=True):
4040
dirs[:] = [d for d in dirs if d not in exclude]
41-
short_root = root.lstrip(discover_path)
41+
short_root = root.replace(discover_path, '')
4242
for file in files:
4343
output = f'Currently checking: file={file}'
4444
file_path = os.path.join(root, file)

0 commit comments

Comments
 (0)