Xenial tweaks

This commit is contained in:
Ian Gulliver
2016-08-04 04:25:02 +00:00
parent 95315dfa77
commit 5defa222d6
2 changed files with 4 additions and 1 deletions

View File

@@ -20,8 +20,10 @@ class IconModule(object):
def Exec(self, *args, **kwargs):
print('+', args)
env = kwargs.pop('env', os.environ.copy())
env['LC_ALL'] = 'C'
try:
subprocess.check_call(args, **kwargs)
subprocess.check_call(args, env=env, **kwargs)
except subprocess.CalledProcessError as e:
print('ERROR:', e)
raise SubprocessFailure(e)