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:
tests/syntax-tests
5
tests/syntax-tests/create_highlighted_versions.py
vendored
Normal file → Executable file
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),
|
||||
|
Reference in New Issue
Block a user