subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd = [str(Path(sys.executable)), str(script_path)] # run in the ASR directory so generated files land in the right place result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 94% confidence
- Finding
- result = subprocess.run( cmd, capture_output=True, text=True, encoding='utf-8', timeout=1800, cwd=str(self.asr_dir) #
