From: Ian Weller Date: Tue, 22 Dec 2009 02:24:45 +0000 (-0600) Subject: Open .mw/version file for writing X-Git-Url: https://projects.mako.cc/source/mw/commitdiff_plain/c5075c4a66b4f0f461489f1cee62068b67e01ff0?hp=8082a398adca9f9db9c38ca86aa6fb91151cbe52 Open .mw/version file for writing --- 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