Made collections python module required only for 'pot-update' scons target.

This commit is contained in:
Sergey Popov 2010-03-28 20:36:24 +00:00
parent cba8441ac7
commit bbf5cc114e

View file

@ -5,7 +5,6 @@ import os, shutil
import re
from fnmatch import fnmatch
from os.path import join, walk
from collections import defaultdict
Import("env")
def remove_pot_cdate(path):
@ -29,6 +28,7 @@ textdomains = filter(os.path.isdir, textdomains)
linguas = Split(open("LINGUAS").read())
if "pot-update" in COMMAND_LINE_TARGETS:
from collections import defaultdict
domain_sources = defaultdict(list)
def fill_source_list(arg, dir, files):
for file in files: