RefactoringRope/MoveDialog.py

changeset 354
a967ff16629a
parent 347
b5048b5ff454
child 365
f740b50380df
equal deleted inserted replaced
353:d38295fd97c2 354:a967ff16629a
172 dest = self.destinationEdit.text() 172 dest = self.destinationEdit.text()
173 if not dest: 173 if not dest:
174 dest = self.__project.getProjectPath() 174 dest = self.__project.getProjectPath()
175 elif not os.path.isabs(dest): 175 elif not os.path.isabs(dest):
176 dest = os.path.join(self.__project.getProjectPath(), dest) 176 dest = os.path.join(self.__project.getProjectPath(), dest)
177 if self.__moveType == "move_global_method": 177 destination = (
178 destination = E5FileDialog.getOpenFileName( 178 E5FileDialog.getOpenFileName(
179 self, 179 self,
180 self.windowTitle(), 180 self.windowTitle(),
181 dest, 181 dest,
182 self.tr("Python Files (*.py *.py3);;All Files (*)")) 182 self.tr("Python Files (*.py *.py3);;All Files (*)"))
183 else: 183 if self.__moveType == "move_global_method" else
184 # move_module 184 # move_module
185 destination = E5FileDialog.getExistingDirectory( 185 E5FileDialog.getExistingDirectory(
186 self, 186 self,
187 self.windowTitle(), 187 self.windowTitle(),
188 dest) 188 dest)
189 )
189 190
190 if destination: 191 if destination:
191 destination = Utilities.toNativeSeparators(destination) 192 destination = Utilities.toNativeSeparators(destination)
192 if not self.__project.startswithProjectPath(destination): 193 if not self.__project.startswithProjectPath(destination):
193 if self.__moveType == "move_global_method": 194 if self.__moveType == "move_global_method":

eric ide

mercurial