File size: 431 Bytes
fe39446
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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'
)