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) |