for t in glob.glob('translations/qt*.ts'):
if 'tools' in t:
- command = 'build/bin/lupdate -locations relative -no-ui-lines -no-obsolete %s -ts %s' % (' '.join(tfiles), t)
- command = shlex.split(command)
- pipe = subprocess.Popen(command, stderr=subprocess.PIPE)
- pipe.wait()
- if pipe.returncode != 0:
- raise(Exception(pipe.communicate()[1].strip()))
+ files = ' '.join(tfiles)
else:
- command = 'build/bin/lupdate -locations relative -no-ui-lines -no-obsolete %s -ts %s' % (' '.join(cfiles), t)
- command = shlex.split(command)
- pipe = subprocess.Popen(command, stderr=subprocess.PIPE)
- pipe.wait()
- if pipe.returncode != 0:
- raise(Exception(pipe.communicate()[1].strip()))
+ files = ' '.join(cfiles)
+ command = 'build/bin/lupdate -locations relative -no-ui-lines -no-obsolete %s -ts %s' % (files, t)
+ command = shlex.split(command)
+ pipe = subprocess.Popen(command, stderr=subprocess.PIPE)
+ pipe.wait()
+ if pipe.returncode != 0:
+ raise(Exception(pipe.communicate()[1].strip()))