#!/usr/bin/env python3
"""Task-local adapter for AERSCREEN's Windows COPY command.

Only copies between regular files directly within the active run directory.
The tested path is prompts.inp -> prompts1.inp. No recursive/glob copying.
"""
from pathlib import Path
import shutil, sys
args=[x for x in sys.argv[1:] if x.lower() not in ('/y',)]
if len(args)!=2:
    raise SystemExit('COPY adapter expects two local filenames')
cwd=Path.cwd().resolve()
paths=[(cwd/a).resolve() for a in args]
if any(p.parent!=cwd for p in paths):
    raise SystemExit('COPY adapter permits only current-run files')
shutil.copyfile(*paths)
