10 import sys |
10 import sys |
11 import os |
11 import os |
12 |
12 |
13 from PyQt4.QtCore import QProcess, QSettings, QFileInfo |
13 from PyQt4.QtCore import QProcess, QSettings, QFileInfo |
14 from PyQt4.QtGui import QSystemTrayIcon, QMenu, qApp, QCursor, QMessageBox |
14 from PyQt4.QtGui import QSystemTrayIcon, QMenu, qApp, QCursor, QMessageBox |
|
15 |
|
16 from E5Gui import E5MessageBox |
15 |
17 |
16 import Globals |
18 import Globals |
17 import UI.PixmapCache |
19 import UI.PixmapCache |
18 |
20 |
19 import Utilities |
21 import Utilities |
191 args.append(applPath) |
193 args.append(applPath) |
192 for arg in applArgs: |
194 for arg in applArgs: |
193 args.append(arg) |
195 args.append(arg) |
194 |
196 |
195 if not os.path.isfile(applPath) or not proc.startDetached(sys.executable, args): |
197 if not os.path.isfile(applPath) or not proc.startDetached(sys.executable, args): |
196 QMessageBox.critical(self, |
198 E5MessageBox.critical(self, |
197 self.trUtf8('Process Generation Error'), |
199 self.trUtf8('Process Generation Error'), |
198 self.trUtf8( |
200 self.trUtf8( |
199 '<p>Could not start the process.<br>' |
201 '<p>Could not start the process.<br>' |
200 'Ensure that it is available as <b>{0}</b>.</p>' |
202 'Ensure that it is available as <b>{0}</b>.</p>' |
201 ).format(applPath), |
203 ).format(applPath), |