|
@ -2406,7 +2406,7 @@ class SevenZip: |
|
|
|
|
|
|
|
|
def run_simple(cmd): |
|
|
def run_simple(cmd): |
|
|
""" Run simple external command and return output """ |
|
|
""" Run simple external command and return output """ |
|
|
p = Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
|
|
with Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p: |
|
|
txt = platform_btou(p.stdout.read()) |
|
|
txt = platform_btou(p.stdout.read()) |
|
|
p.wait() |
|
|
p.wait() |
|
|
return txt |
|
|
return txt |
|
|