diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-11-24 20:13:49 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-11-24 22:20:52 +0100 |
commit | 63510b3c69761ec1de3c1acd30cf6e4e3a55184a (patch) | |
tree | c3e5b767f5a3060905fe043e5b0ced77205a6c53 /wizards/com/sun/star/wizards/letter | |
parent | e5f040bf7c73104ad472c4fd959dc6f8d96b57c2 (diff) |
pywizards: better us os.path
Change-Id: Iae2bfba899ba23e743f72f5c675177771be66c7a
Diffstat (limited to 'wizards/com/sun/star/wizards/letter')
-rw-r--r-- | wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py index 9e93916aa347..0ea4d122c212 100644 --- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py @@ -16,6 +16,7 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import traceback +import os.path from .LetterWizardDialog import LetterWizardDialog, Helper, \ PropertyNames, uno, HelpIds, HID from .LetterDocument import LetterDocument, BusinessPaperObject @@ -169,13 +170,12 @@ class LetterWizardDialogImpl(LetterWizardDialog): try: fileAccess = FileAccess(self.xMSF) self.sPath = self.myPathSelection.getSelectedPath() - if not self.sPath: + if not self.sPath or not os.path.exists(self.sPath): self.myPathSelection.triggerPathPicker() self.sPath = self.myPathSelection.getSelectedPath() self.sPath = fileAccess.getURL(self.sPath) if not self.filenameChanged: - if fileAccess.exists(self.sPath, True): answer = SystemDialog.showMessageBox( self.xMSF, "MessBox", YES_NO + DEF_NO, self.resources.resOverwriteWarning, |