src/eric7/MicroPython/MicroPythonFileManagerWidget.py

branch
eric7
changeset 9238
a7cbf3d61498
parent 9221
bf71ee032bb4
child 9413
80c06d472826
equal deleted inserted replaced
9237:03c714bd4ebf 9238:a7cbf3d61498
688 @param localDevice flag indicating device access via local file system 688 @param localDevice flag indicating device access via local file system
689 @type bool 689 @type bool
690 """ 690 """
691 cwdWidget = self.deviceCwd if localDevice else self.localCwd 691 cwdWidget = self.deviceCwd if localDevice else self.localCwd
692 692
693 dirPath, ok = EricPathPickerDialog.getPath( 693 dirPath, ok = EricPathPickerDialog.getStrPath(
694 self, 694 self,
695 self.tr("Change Directory"), 695 self.tr("Change Directory"),
696 self.tr("Select Directory"), 696 self.tr("Select Directory"),
697 EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE, 697 EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE,
698 path=cwdWidget.text(), 698 strPath=cwdWidget.text(),
699 defaultDirectory=cwdWidget.text(), 699 defaultDirectory=cwdWidget.text(),
700 ) 700 )
701 if ok and dirPath: 701 if ok and dirPath:
702 if not os.path.isabs(dirPath): 702 if not os.path.isabs(dirPath):
703 dirPath = os.path.join(cwdWidget.text(), dirPath) 703 dirPath = os.path.join(cwdWidget.text(), dirPath)

eric ide

mercurial