b637a8298745cb1cb23b79b6268d5d5827dcc43f
1 from os
.path
import join
2 from Globals
import package_home
3 home
= package_home(globals())
5 f
= file(join(home
, 'xmp_exif.csv'))
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