9 |
9 |
10 import os |
10 import os |
11 import shutil |
11 import shutil |
12 import fnmatch |
12 import fnmatch |
13 |
13 |
14 from PyQt4.QtCore import pyqtSignal, QProcess, QLibraryInfo |
14 from PyQt4.QtCore import pyqtSignal, QProcess |
15 from PyQt4.QtGui import QDialog, QMenu |
15 from PyQt4.QtGui import QDialog, QMenu |
16 |
16 |
17 from E5Gui import E5MessageBox |
17 from E5Gui import E5MessageBox |
18 from E5Gui.E5Application import e5App |
18 from E5Gui.E5Application import e5App |
19 |
19 |
1052 args = [] |
1052 args = [] |
1053 |
1053 |
1054 if self.project.getProjectType() in \ |
1054 if self.project.getProjectType() in \ |
1055 ["Qt4", "Qt4C", "E4Plugin", "PySide", "PySideC"]: |
1055 ["Qt4", "Qt4C", "E4Plugin", "PySide", "PySideC"]: |
1056 lrelease = os.path.join( |
1056 lrelease = os.path.join( |
1057 QLibraryInfo.location(QLibraryInfo.BinariesPath), |
1057 Utilities.getQtBinariesPath(), |
1058 Utilities.generateQtToolName("lrelease")) |
1058 Utilities.generateQtToolName("lrelease")) |
1059 else: |
1059 else: |
1060 return |
1060 return |
1061 if Utilities.isWindowsPlatform(): |
1061 if Utilities.isWindowsPlatform(): |
1062 lrelease = lrelease + '.exe' |
1062 lrelease = lrelease + '.exe' |