mirror of
https://github.com/sharkdp/bat
synced 2024-11-23 20:33:06 +00:00
Fixed file location in creation script
This commit is contained in:
parent
6c68198d19
commit
19b55706ee
1 changed files with 3 additions and 2 deletions
|
@ -26,8 +26,9 @@ SKIP_FILENAMES = [
|
|||
def get_options(source):
|
||||
source_dirpath = path.dirname(source)
|
||||
options = BAT_OPTIONS.copy()
|
||||
if path.exists(path.join(source_dirpath, "bat_options")):
|
||||
with open(path.join(source, "bat_options"), "r") as f:
|
||||
options_file = path.join(source_dirpath, "bat_options")
|
||||
if path.exists(options_file):
|
||||
with open(options_file, "r") as f:
|
||||
options += list(map(lambda x: x.rstrip(), f.readlines()))
|
||||
return options
|
||||
|
||||
|
|
Loading…
Reference in a new issue