diff options
author | Xisco Fauli <anistenis@gmail.com> | 2011-07-06 17:49:00 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-18 02:33:55 +0200 |
commit | 2707abdd1928006c6efbac3cb98f6bac25ad55ac (patch) | |
tree | 1f12d812a6e3ee54f665f48abf0aaac4c73f106c /wizards | |
parent | 7bd40550a45e1013efaeec0a93ab152329254fc1 (diff) |
create file when it doesn't exist
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/common/FileAccess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.py b/wizards/com/sun/star/wizards/common/FileAccess.py index 384582b71899..3397d7138cf5 100644 --- a/wizards/com/sun/star/wizards/common/FileAccess.py +++ b/wizards/com/sun/star/wizards/common/FileAccess.py @@ -485,9 +485,9 @@ class FileAccess(object): try: if childPath is not None: path = self.filenameConverter.getSystemPathFromFileURL(path) - f = open(path,childPath) + f = open(path,childPath, 'w') else: - f = open(path) + f = open(path, 'w') r = self.filenameConverter.getFileURLFromSystemPath(path, osPath.abspath(path)) |