summaryrefslogtreecommitdiff
path: root/test/convert.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-08 18:46:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-08 18:46:25 -0400
commit6154b9e794942bae557516a358e1bc3d665b60db (patch)
tree25e86c7bf0be0ecaf5b4216c6c7177108f143ccc /test/convert.py
parent7b2d75904c8f93cbec40bdc3905ba81f48f84853 (diff)
downloadfork-ledger-6154b9e794942bae557516a358e1bc3d665b60db.tar.gz
fork-ledger-6154b9e794942bae557516a358e1bc3d665b60db.tar.bz2
fork-ledger-6154b9e794942bae557516a358e1bc3d665b60db.zip
Avoid a race condition when making directories
This can happen when doing a concurrent build with -jX.
Diffstat (limited to 'test/convert.py')
-rwxr-xr-xtest/convert.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/convert.py b/test/convert.py
index 276d500f..556a20f5 100755
--- a/test/convert.py
+++ b/test/convert.py
@@ -42,7 +42,8 @@ target = os.path.abspath(sys.argv[2])
dirname = os.path.dirname(target)
if not os.path.isdir(dirname):
- os.makedirs(dirname)
+ try: os.makedirs(dirname)
+ except: pass
fd = open(source, "r")
fo = open(target, "w")