summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-07-06 17:49:00 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:33:55 +0200
commit2707abdd1928006c6efbac3cb98f6bac25ad55ac (patch)
tree1f12d812a6e3ee54f665f48abf0aaac4c73f106c /wizards
parent7bd40550a45e1013efaeec0a93ab152329254fc1 (diff)
create file when it doesn't exist
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.py4
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))