mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-11 21:28:22 +02:00
Formatting
This commit is contained in:
parent
b3903175c8
commit
62e715ff5b
@ -33,7 +33,6 @@ def get_options(source):
|
|||||||
return options
|
return options
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def create_highlighted_versions(output_basepath):
|
def create_highlighted_versions(output_basepath):
|
||||||
root = os.path.dirname(os.path.abspath(__file__))
|
root = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
@ -56,7 +55,8 @@ def create_highlighted_versions(output_basepath):
|
|||||||
|
|
||||||
bat_output = subprocess.check_output(
|
bat_output = subprocess.check_output(
|
||||||
["bat"] + get_options(source) + [source],
|
["bat"] + get_options(source) + [source],
|
||||||
stderr=subprocess.PIPE, env=env,
|
stderr=subprocess.PIPE,
|
||||||
|
env=env,
|
||||||
)
|
)
|
||||||
|
|
||||||
output_dir = path.join(output_basepath, source_dirname)
|
output_dir = path.join(output_basepath, source_dirname)
|
||||||
@ -83,7 +83,10 @@ def create_highlighted_versions(output_basepath):
|
|||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print("Error: Could not execute 'bat'. Please make sure that the executable is available on the PATH.")
|
print(
|
||||||
|
"Error: Could not execute 'bat'. Please make sure that the executable "
|
||||||
|
"is available on the PATH."
|
||||||
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user