mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Add comparison script
This commit is contained in:
1 parent
a70efae79b
commit
02a89d8ee8
4 files changed
+82
-164
No files matched your search
+2
-3
@@ -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