src/eric7/WebBrowser/WebBrowserSingleApplication.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
9 browser. 9 browser.
10 """ 10 """
11 11
12 from PyQt6.QtCore import pyqtSignal 12 from PyQt6.QtCore import pyqtSignal
13 13
14 from eric7 import Globals 14 from eric7.SystemUtilities import OSUtilities
15 from eric7.Toolbox.SingleApplication import ( 15 from eric7.Toolbox.SingleApplication import (
16 SingleApplicationClient, 16 SingleApplicationClient,
17 SingleApplicationServer, 17 SingleApplicationServer,
18 ) 18 )
19 19
141 """ 141 """
142 # no args, return 142 # no args, return
143 if args is None: 143 if args is None:
144 return 144 return
145 145
146 argChars = ("-", "/") if Globals.isWindowsPlatform() else ("-",) 146 argChars = ("-", "/") if OSUtilities.isWindowsPlatform() else ("-",)
147 147
148 for arg in args: 148 for arg in args:
149 if arg.startswith("--search="): 149 if arg.startswith("--search="):
150 self.__search(arg.replace("--search=", "")) 150 self.__search(arg.replace("--search=", ""))
151 elif arg.startswith("--newtab="): 151 elif arg.startswith("--newtab="):

eric ide

mercurial