Retrait des expansions des mots-clé svn.
[Photo.git] / standards / bridges / _bridges.py
1 from os.path import join
2 from Globals import package_home
3 home = package_home(globals())
4
5 f = file(join(home, 'xmp_exif.csv'))
6 lines = f.readlines()
7 f.close()
8 xmp2exif = {}
9 exif2xmp = {}
10
11 for l in [l for l in lines if not l.startswith('#')] :
12 fields = [f.strip() for f in l.split(';')]
13 assert len(fields) == 2, "%s malformed at line: '%s')" % (path, l)
14 xmpName, exifTag = fields
15 xmp2exif[xmpName] = exifTag
16 exif2xmp[exifTag] = xmpName