1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-06-21 07:48:29 +01:00

Add comparison script

This commit is contained in:
sharkdp
2020-08-03 13:34:21 +02:00
committed by David Peter
parent a70efae79b
commit 02a89d8ee8
4 changed files with 82 additions and 164 deletions

5
tests/syntax-tests/create_highlighted_versions.py vendored Normal file → Executable file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import subprocess
import glob
@ -37,8 +37,7 @@ def create_highlighted_versions(output_basepath):
with open(output_path, "wb") as output_file:
output_file.write(bat_output)
relative_path = path.relpath(output_path, root)
print("Created '{}'".format(relative_path))
print("Created '{}'".format(output_path))
except subprocess.CalledProcessError as err:
print(
"=== Error: Could not highlight source file '{}".format(source),