From 19b55706ee20cb0325304b6db37570c6614089ad Mon Sep 17 00:00:00 2001 From: Logan Saso Date: Sat, 10 Oct 2020 12:25:45 -0700 Subject: [PATCH] Fixed file location in creation script --- tests/syntax-tests/create_highlighted_versions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/syntax-tests/create_highlighted_versions.py b/tests/syntax-tests/create_highlighted_versions.py index 75278197..2802991f 100755 --- a/tests/syntax-tests/create_highlighted_versions.py +++ b/tests/syntax-tests/create_highlighted_versions.py @@ -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