comparison harvestToPurl.py @ 39:a33fa2377075

outfiles are now set as parameter
author dwinter
date Wed, 05 Mar 2014 10:11:50 +0100
parents 6a0873a913c5
children
comparison
equal deleted inserted replaced
38:6d0d7f1c11f2 39:a33fa2377075
9 ''' 9 '''
10 10
11 11
12 12
13 import managePurls.manageIndexMetaPURLs as manageIndexMetaPURLs 13 import managePurls.manageIndexMetaPURLs as manageIndexMetaPURLs
14 import addDriToIndexMeta 14 from addDriToIndexMeta import getDRIfromIndexMeta
15 15
16 16
17 import os 17 import os
18 from os.path import join, getsize 18 from os.path import join, getsize
19 import sys 19 import sys
43 43
44 for name in files: 44 for name in files:
45 if name.endswith(".meta"): 45 if name.endswith(".meta"):
46 fl=join(root, name) 46 fl=join(root, name)
47 47
48 48 parseErrorFile = file("/tmp/HarvestToPurlParseErrors.txt","w")
49 driIndexMeta=addDriToIndexMeta.getDRIfromIndexMeta(fl) 49 driIndexMeta=getDRIfromIndexMeta(fl,parseErrorFile=parseErrorFile)
50 50
51 imagePath=createImagePath(fl,root) 51 imagePath=createImagePath(fl,root)
52 52
53 imagePath=re.sub("^"+delpath,replacepath,imagePath) 53 imagePath=re.sub("^"+delpath,replacepath,imagePath)
54 54