E5Gui/E5SingleApplication.py

changeset 410
e5d1addeb90c
parent 96
9624a110667d
child 608
d8fea1e76975
equal deleted inserted replaced
409:0ea528e80202 410:e5d1addeb90c
116 116
117 if arg[0] in argChars or ddseen: 117 if arg[0] in argChars or ddseen:
118 if argsStr is None: 118 if argsStr is None:
119 argsStr = arg 119 argsStr = arg
120 else: 120 else:
121 argsStr = "%s %s" % (argsStr, arg) 121 argsStr = "{0} {1}".format(argsStr, arg)
122 continue 122 continue
123 123
124 ext = os.path.splitext(arg)[1] 124 ext = os.path.splitext(arg)[1]
125 ext = os.path.normcase(ext) 125 ext = os.path.normcase(ext)
126 126
139 """ 139 """
140 Private method to open a file in the application server. 140 Private method to open a file in the application server.
141 141
142 @param fname name of file to be opened (string) 142 @param fname name of file to be opened (string)
143 """ 143 """
144 cmd = "%s%s\n" % (SAOpenFile, Utilities.normabspath(fname)) 144 cmd = "{0}{1}\n".format(SAOpenFile, Utilities.normabspath(fname))
145 self.sendCommand(cmd) 145 self.sendCommand(cmd)
146 146
147 def __openProject(self, pfname): 147 def __openProject(self, pfname):
148 """ 148 """
149 Private method to open a project in the application server. 149 Private method to open a project in the application server.
150 150
151 @param pfname name of the projectfile to be opened (string) 151 @param pfname name of the projectfile to be opened (string)
152 """ 152 """
153 cmd = "%s%s\n" % (SAOpenProject, Utilities.normabspath(pfname)) 153 cmd = "{0}{1}\n".format(SAOpenProject, Utilities.normabspath(pfname))
154 self.sendCommand(cmd) 154 self.sendCommand(cmd)
155 155
156 def __sendArguments(self, argsStr): 156 def __sendArguments(self, argsStr):
157 """ 157 """
158 Private method to set the command arguments in the application server. 158 Private method to set the command arguments in the application server.
159 159
160 @param argsStr space delimited list of command args (string) 160 @param argsStr space delimited list of command args (string)
161 """ 161 """
162 cmd = "%s%s\n" % (SAArguments, argsStr) 162 cmd = "{0}{1}\n".format(SAArguments, argsStr)
163 self.sendCommand(cmd) 163 self.sendCommand(cmd)

eric ide

mercurial