eric7/WebBrowser/WebBrowserWindow.py

branch
eric7
changeset 9016
6f079c524e99
parent 8881
54e42bc2437a
child 9153
506e35e424d5
equal deleted inserted replaced
9015:dfeefad914ed 9016:6f079c524e99
7 Module implementing the web browser main window. 7 Module implementing the web browser main window.
8 """ 8 """
9 9
10 import os 10 import os
11 import shutil 11 import shutil
12 import sys
13 import functools 12 import functools
14 import contextlib 13 import contextlib
15 14
16 from PyQt6.QtCore import ( 15 from PyQt6.QtCore import (
17 pyqtSlot, pyqtSignal, Qt, QByteArray, QSize, QTimer, QUrl, QProcess, 16 pyqtSlot, pyqtSignal, Qt, QByteArray, QSize, QTimer, QUrl, QProcess,
2472 if linkName: 2471 if linkName:
2473 args.append(linkName) 2472 args.append(linkName)
2474 2473
2475 if ( 2474 if (
2476 not os.path.isfile(applPath) or 2475 not os.path.isfile(applPath) or
2477 not QProcess.startDetached(sys.executable, args) 2476 not QProcess.startDetached(Globals.getPythonExecutable(), args)
2478 ): 2477 ):
2479 EricMessageBox.critical( 2478 EricMessageBox.critical(
2480 self, 2479 self,
2481 self.tr('New Private Window'), 2480 self.tr('New Private Window'),
2482 self.tr( 2481 self.tr(

eric ide

mercurial