#!/bin/sh
./yourscript.sh
sh /path/to/file
self.returncode = subprocess. run(self.shellScriptPath, input='yes ', text=True).returncode