From c5075c4a66b4f0f461489f1cee62068b67e01ff0 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Mon, 21 Dec 2009 20:24:45 -0600 Subject: [PATCH] Open .mw/version file for writing --- src/mw/metadir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mw/metadir.py b/src/mw/metadir.py index 27e2fec..49a91cf 100644 --- a/src/mw/metadir.py +++ b/src/mw/metadir.py @@ -52,7 +52,7 @@ class Metadir(object): else: os.mkdir(self.location, 0755) # metadir versioning - fd = file(os.path.join(self.location, 'version')) + fd = file(os.path.join(self.location, 'version'), 'w') fd.write('1') fd.close() # create config -- 2.39.5