Changeset 1050
- Timestamp:
- 08/21/07 11:15:39 (1 year ago)
- Files:
-
- BibIt/trunk/bibunifer.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
BibIt/trunk/bibunifer.py
r1018 r1050 1 1 """ 2 snark 2 crawl a pleiades bibliography file tree and build a single modscollection file 3 from all the mods files you find 4 5 python bibunifer --source=/path/to/top/of/dir/tree/ --destination=/path/to/destination/dir 6 7 note that the modscollection file will be saved as index.xml in the directory indicated 8 by the --destination option 3 9 """ 4 10 import sys … … 62 68 else: 63 69 for fname in files: 64 if '.xml'in fname:70 if fname.endswith('.xml')and '-fixed.' not in fname: 65 71 f = open(os.path.join(root, fname)) 66 72 fcon = f.read()
