Skip to content
Snippets Groups Projects
Commit f1f6b4c7 authored by Simon Rose's avatar Simon Rose
Browse files

Merge branch 'fix_multiple_ioc_init' into 'master'

E3-1457: Get rid of multuple iocInits

See merge request !161
parents 6f3ff904 7d755c38
No related branches found
No related tags found
1 merge request!161E3-1457: Get rid of multuple iocInits
Pipeline #176481 failed
...@@ -75,7 +75,11 @@ def iocsh( ...@@ -75,7 +75,11 @@ def iocsh(
if not no_init: if not no_init:
# if file isn't passed we shouldn't try to read its' content # if file isn't passed we shouldn't try to read its' content
if not file or re.search(r"^\s*iocInit\b", file.read_text()) is None: if (
not file
or re.search(r"^\s*iocInit\b", file.read_text(), flags=re.MULTILINE)
is None
):
tmp_startup_script.add_command("iocInit") tmp_startup_script.add_command("iocInit")
tmp_startup_script.save() tmp_startup_script.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment