Skip to content

Commit 043e2b8

Browse files
committed
nicer paths in reports
1 parent fcb7165 commit 043e2b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pip_missing_reqs/find_missing_reqs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def find_imported_modules(options):
106106
for path in options.paths:
107107
for filename in pyfiles(path):
108108
if options.ignore_files(filename):
109-
log.info('ignoring: %s', filename)
109+
log.info('ignoring: %s', os.path.relpath(filename))
110110
continue
111111
with open(filename) as f:
112112
content = f.read()
@@ -195,8 +195,8 @@ def ignore_files(filename, ignore_files=options.ignore_files):
195195
for name, uses in find_missing_reqs(options):
196196
for use in uses:
197197
for filename, lineno in use.locations:
198-
log.warning('%s:%s dist=%s module=%s', filename, lineno,
199-
name, use.modname)
198+
log.warning('%s:%s dist=%s module=%s',
199+
os.path.relpath(filename), lineno, name, use.modname)
200200

201201
if __name__ == '__main__': # pragma: no cover
202202
main()

0 commit comments

Comments
 (0)