summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-01 15:14:08 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-02 17:13:29 +0000
commite451f9849d8fc73c2c4103083c3d2f869eb13817 (patch)
treebaff8447935b2838ec88a26e81b5202b57a0d194 /morphlib/builder.py
parent697e822049919139781a1d393068ab237c7ed441 (diff)
downloadmorph-e451f9849d8fc73c2c4103083c3d2f869eb13817.tar.gz
Refactor to clarify code a tiny bit by moving variable setting close to use
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index d1a7fbde..0132a46e 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -200,10 +200,10 @@ class BlobBuilder(object): # pragma: no cover
meta[key] = value
dirname = os.path.join(self.destdir, 'baserock')
- filename = os.path.join(dirname, '%s.meta' % blob_name)
if not os.path.exists(dirname):
os.mkdir(dirname)
+ filename = os.path.join(dirname, '%s.meta' % blob_name)
with open(filename, 'w') as f:
json.dump(meta, f, indent=4)
f.write('\n')