Heading
Hello! Have python code what should call shell! When i use it as python code on windows all works fine! After compiling it with pyinstaller I am getting Windows 6 error Handler is invalid Here is piece of code
def shell(self, task_id, command):
import subprocess
process = subprocess.Popen(command.split(),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=self.current_directory)
stdout, stderr = process.communicate()
out = stderr if stderr else stdout
return out.decode()