Skip to content

Commit

Permalink
tools/check_format.py: Using absolute path instead of changing direct…
Browse files Browse the repository at this point in the history
…ory and using relative path (envoyproxy#2454)

Signed-off-by: sri kailash <[email protected]>
  • Loading branch information
srikailash authored and mattklein123 committed Jan 26, 2018
1 parent 4264986 commit 4f6d3b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/check_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ def checkFormatVisitor(arg, dir_name, names):
if os.path.isfile(target_path):
checkFormat("./" + target_path)
else:
os.chdir(target_path)
os.path.walk(".", checkFormatVisitor, None)
os.path.walk(target_path, checkFormatVisitor, None)

if found_error:
print "ERROR: check format failed. run 'tools/check_format.py fix'"
Expand Down

0 comments on commit 4f6d3b2

Please sign in to comment.