Add comparison script

This commit is contained in:
sharkdp authored and David Peter committed 2020-08-03 15:59:53 +02:00
1 parent a70efae79b
commit 02a89d8ee8
4 files changed
+82 -164

No files matched your search

+2 -3
View 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),