summaryrefslogtreecommitdiff
path: root/tools/sync_attrmaps.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sync_attrmaps.py')
-rwxr-xr-xtools/sync_attrmaps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sync_attrmaps.py b/tools/sync_attrmaps.py
index 0dc84328..a067d8af 100755
--- a/tools/sync_attrmaps.py
+++ b/tools/sync_attrmaps.py
@@ -124,7 +124,7 @@ if __name__ == "__main__":
if os.path.isfile(_name):
directory, fname = os.path.split(_name)
amap = AMap(directory, fname, 4 * " ")
- f = open(_name)
+ f = open(_name, "w")
f.write("%s" % amap)
f.close()
elif os.path.isdir(_name):