"""Real round8 pointer/shortcut guard checks, temporary stores only."""
from pathlib import Path
import sys
import types

PROJECT=Path(__file__).resolve().parents[1];sys.path.insert(0,str(PROJECT));sys.path.insert(0,str(PROJECT/'scripts'))
path=PROJECT/'scripts/check_pallet_description_round7_pointer.py'
SOURCE=path.read_text().replace('round7','round8')
implementation=types.ModuleType('_round8_pointer');implementation.__file__=__file__
exec(compile(SOURCE,str(path),'exec'),implementation.__dict__)


def check(mode):
    # Pointer and full GUI checks may start independently in either order.
    (implementation.RELEASE/mode/'checks').mkdir(mode=0o700,parents=True,exist_ok=True)
    return implementation.check(mode)

if __name__=='__main__':
    import argparse
    p=argparse.ArgumentParser();p.add_argument('mode',choices=('new','existing'));a=p.parse_args();check(a.mode)
