6 """ |
6 """ |
7 Module implementing the Ericapi plugin. |
7 Module implementing the Ericapi plugin. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 import sys |
|
12 import copy |
|
13 |
11 |
14 from PyQt4.QtCore import QObject, SIGNAL |
12 from PyQt4.QtCore import QObject, SIGNAL |
15 from PyQt4.QtGui import QDialog, QApplication |
13 from PyQt4.QtGui import QDialog, QApplication |
16 |
14 |
17 from E5Gui.E5Application import e5App |
15 from E5Gui.E5Application import e5App |
159 # add output files to the project data, if they aren't in already |
157 # add output files to the project data, if they aren't in already |
160 for progLanguage in parms['languages']: |
158 for progLanguage in parms['languages']: |
161 if "%L" in outputFileName: |
159 if "%L" in outputFileName: |
162 outfile = outputFileName.replace("%L", progLanguage) |
160 outfile = outputFileName.replace("%L", progLanguage) |
163 else: |
161 else: |
164 if len(progLanguages) == 1: |
162 if len(parms['languages']) == 1: |
165 outfile = outputFileName |
163 outfile = outputFileName |
166 else: |
164 else: |
167 root, ext = os.path.splitext(outputFileName) |
165 root, ext = os.path.splitext(outputFileName) |
168 outfile = "%s-%s%s" % (root, progLanguage.lower(), ext) |
166 outfile = "%s-%s%s" % (root, progLanguage.lower(), ext) |
169 |
167 |