Skip to content

Commit

Permalink
Print full path to the FileCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw committed Nov 29, 2019
1 parent 821dfb3 commit c287ec8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FileCheck
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def dump_check(check):


# FileCheck always prints its first argument.
print(sys.argv[0])
filecheck_path = sys.argv[0]
if os.path.exists(filecheck_path):
filecheck_path = os.path.abspath(filecheck_path)

print(filecheck_path)

if len(sys.argv) == 1:
print("<check-file> not specified")
Expand Down

0 comments on commit c287ec8

Please sign in to comment.