Changeset 1050

Show
Ignore:
Timestamp:
08/21/07 11:15:39 (1 year ago)
Author:
thomase
Message:

add a real docstring with usage, and make sure only xml files get caught up in the copy-and-chunk maelstrom (not, e.g., .bak files).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • BibIt/trunk/bibunifer.py

    r1018 r1050  
    11""" 
    2 snark 
     2crawl a pleiades bibliography file tree and build a single modscollection file  
     3from all the mods files you find 
     4 
     5python bibunifer --source=/path/to/top/of/dir/tree/ --destination=/path/to/destination/dir 
     6 
     7note that the modscollection file will be saved as index.xml in the directory indicated 
     8by the --destination option 
    39""" 
    410import sys 
     
    6268        else: 
    6369            for fname in files: 
    64                 if '.xml' in fname: 
     70                if fname.endswith('.xml')and '-fixed.' not in fname: 
    6571                    f = open(os.path.join(root, fname)) 
    6672                    fcon = f.read()