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 |
14 from PyQt4.QtCore import pyqtSignal, QProcess, QLibraryInfo |
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 |
1051 self.lreleaseProc = QProcess() |
1051 self.lreleaseProc = QProcess() |
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 = Utilities.generateQtToolName("lrelease") |
1056 lrelease = os.path.join( |
|
1057 QLibraryInfo.location(QLibraryInfo.BinariesPath), |
|
1058 Utilities.generateQtToolName("lrelease")) |
1057 else: |
1059 else: |
1058 return |
1060 return |
1059 if Utilities.isWindowsPlatform(): |
1061 if Utilities.isWindowsPlatform(): |
1060 lrelease = lrelease + '.exe' |
1062 lrelease = lrelease + '.exe' |
1061 |
1063 |