9
if os.path.isdir(os.path.join('conf', 'locale')):
10
basedir = os.path.abspath(os.path.join('conf', 'locale'))
11
elif os.path.isdir('locale'):
12
basedir = os.path.abspath('locale')
14
print "this script should be run from the django svn tree or your project or app tree"
17
for (dirpath, dirnames, filenames) in os.walk(basedir):
20
sys.stderr.write('processing file %s in %s\n' % (f, dirpath))
21
pf = os.path.splitext(os.path.join(dirpath, f))[0]
22
cmd = 'msguniq "%s.po"' % pf
23
stdout = os.popen(cmd)
25
open('%s.po' % pf, 'w').write(msg)
27
if __name__ == "__main__":