mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-01-10 13:17:58 +03:00
Added independence of scripts from each other
This commit is contained in:
parent
73404ceced
commit
9a74efefde
@ -104,8 +104,8 @@ class Scripts_runner:
|
||||
|
||||
def run_cmd_subprocess(self, cmd):
|
||||
try:
|
||||
res = subprocess.check_output(cmd, encoding='utf-8')
|
||||
return 'Script output: {}'.format(res)
|
||||
subprocess.Popen(cmd)
|
||||
return 'Script run: {}'.format(cmd)
|
||||
except Exception as exc:
|
||||
return exc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user