diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-12-03 15:36:47 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-12-03 15:36:47 +0100 |
commit | 70c4d6266602e692ef2b9c28be8e1908c3f52317 (patch) | |
tree | c061889d9b1055af901a2dc7797525cdc291c07d /helpcontent2/to-wiki | |
parent | 15b1b660a11a0f2d05341e1181d93f89c21add18 (diff) |
wikihelp: Wait for the other threads to shut down.
Diffstat (limited to 'helpcontent2/to-wiki')
-rwxr-xr-x | helpcontent2/to-wiki/wikiconv2.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index 8dbb5bb132..33bd7c6c8c 100755 --- a/helpcontent2/to-wiki/wikiconv2.py +++ b/helpcontent2/to-wiki/wikiconv2.py @@ -1089,7 +1089,9 @@ for title in titles: print "Warning: Skipping: "+infile+" > "+outfile file.close() -time.sleep(0.1) +# wait for everyone to finish +while threading.active_count() > 1: + time.sleep(0.001) # set of the images used here print 'Writing the collection of images to "images.txt"...' |