src/eric7/EricWidgets/EricSingleApplication.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
7 Module implementing the single application server and client. 7 Module implementing the single application server and client.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from eric7 import Utilities
13 from eric7.EricWidgets.EricApplication import ericApp 12 from eric7.EricWidgets.EricApplication import ericApp
13 from eric7.SystemUtilities import OSUtilities
14 from eric7.Toolbox.SingleApplication import ( 14 from eric7.Toolbox.SingleApplication import (
15 SingleApplicationClient, 15 SingleApplicationClient,
16 SingleApplicationServer, 16 SingleApplicationServer,
17 ) 17 )
18 18
122 # holds space delimited list of command args, if any 122 # holds space delimited list of command args, if any
123 argsStr = None 123 argsStr = None
124 # flag indicating '--' options was found 124 # flag indicating '--' options was found
125 ddseen = False 125 ddseen = False
126 126
127 argChars = ["-", "/"] if Utilities.isWindowsPlatform() else ["-"] 127 argChars = ["-", "/"] if OSUtilities.isWindowsPlatform() else ["-"]
128 128
129 for arg in args: 129 for arg in args:
130 if arg == "--" and not ddseen: 130 if arg == "--" and not ddseen:
131 ddseen = True 131 ddseen = True
132 continue 132 continue

eric ide

mercurial