@@ -0,0 +1,527 @@
+from multiprocessing import Pool%0Aimport os, glob%0Aimport fo2map%0A%0AN_PROCS = 2%0A%0Adef convert(mapFile):%0A%09with open(mapFile, %22rb%22) as f:%0A%09%09try:%0A%09%09%09mapName = os.path.basename(mapFile).lower()%0A%09%09%09#print %22converting %25s (%25s)...%22 %25 (mapName, mapFile)%0A%09%09%09fo2map.convertMap(f.read(), mapName, outDir=%22maps%22, verbose=False)%0A%09%09except Exception as e:%0A%09%09%09print %22couldn't convert %25s: %25s%22 %25 (mapFile, str(e))%0A%0Aif __name__ == '__main__':%0A%09if not os.path.exists(%22maps%22):%0A%09%09os.mkdir(%22maps%22)%0A%0A%09Pool(N_PROCS).map(convert, glob.glob(%22data/maps/*.MAP%22))

add convertMaps.py (parallel map conversion)