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 |