"""M1: run bmms_3feature_runner.py for seeds beyond 0-3 without editing that file.

The runner restricts --seed to (0, 1, 2, 3); everything else (pretrain, LODO, external phases, tags, init paths,
DirectNet sw2 settings) depends on the seed only through its value. The source is loaded, the choices widened to
0-15 in memory, and executed unchanged otherwise.
"""
import os

path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'bmms_3feature_runner.py')
src = open(path).read()
old = "choices=(0,1,2,3)"
assert src.count(old) == 1, 'bmms_3feature_runner.py changed; re-check the seed argument'
src = src.replace(old, "choices=tuple(range(16))")
exec(compile(src, path, 'exec'), {'__name__': '__main__', '__file__': path})
