1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Replaced Popen with run for command execution

This commit is contained in:
Valery Sinelnikov 2024-06-06 16:39:39 +04:00
parent c9a274fc79
commit 61e7350429

View File

@ -104,7 +104,7 @@ class Scripts_runner:
def run_cmd_subprocess(self, cmd):
try:
subprocess.Popen(cmd)
subprocess.run(cmd)
return 'Script run: {}'.format(cmd)
except Exception as exc:
return exc