1
0
Fork 0

utils: exec commands through shell, unset locale

Fixes several problems on localized system, e.g. cpupower call
This commit is contained in:
Jaroslav Škarvada 2012-11-29 16:32:44 +01:00
parent afefd7598e
commit c6f7c28899

View file

@ -34,7 +34,7 @@ def execute(args):
log.debug("Executing %s." % str(args))
out = ""
try:
proc = Popen(args, stdout=PIPE, stderr=PIPE)
proc = Popen("LANG= " + " ".join(args), stdout = PIPE, stderr = PIPE, shell = True)
out, err = proc.communicate()
if proc.returncode: