Skip to content

Commit abb695a

Browse files
Merge pull request #18 from ISISComputingGroup/script_checker_fix
Fixes genie script checker
2 parents 4356521 + 1d52e2f commit abb695a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/genie_python/genie_script_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ def check_script(
299299
init_hook = (
300300
"import sys;"
301301
'sys.path.append("{}");'
302+
'sys.path.append("U:\\scripts");'
302303
'sys.path.append("C:\\Instrument\\scripts");'.format(inst_file_path)
303304
)
304305
init_hook = init_hook.replace("\\", "\\\\")
@@ -357,8 +358,7 @@ def check_script(
357358
error_line = re.search(r"W:\s+(\d+):", warning)
358359
if error_line:
359360
selected_number = error_line.group(1)
360-
361-
error_line_numbers.append(int(selected_number))
361+
error_line_numbers.append(int(selected_number))
362362

363363
lines_containing_errors = []
364364
with open(script_name) as f:

0 commit comments

Comments
 (0)