I think it could be either way, right now it creates a file named like: figure_1.XXXXXX.XXXXX.pdf in the directory that you specify.


On Oct 22, 2013, at 1:01 PM, adamrp <notifications@github.com> wrote:

> In scripts/replace_svg_object.py:
> 
> > +from os import listdir, makedirs, remove
> > +from optparse import OptionParser, OptionGroup
> > +from americangut.format import format_print_for_magnified_sample
> > +
> > +def main():
> > +    usage = "usage: %prog -i svg_files --prefix figure_1 --sample_id 000000"+\
> > +        "001.314159 -o results/000000001.314159/"
> > +    parser = OptionParser(usage=usage)
> > +    options = OptionGroup(parser, "options")
> > +    options.add_option("-i", "--input_dir", type="string", help="input "
> > +        "directory containing the SVG formatted files")
> > +    options.add_option("--prefix", type="string", help="prefix filename for the"
> > +        " SVG files in the folder i. e. figure_1")
> > +    options.add_option("--sample_id", type="string", help="sample name to be "
> > +        "processed and converted to PDF")
> > +    options.add_option("-o", "--output_dir", type="string", help="output "
> Honestly, I can see it either way, "output file" or "output directory," no strong preference; it's just a matter of where you're keeping track of what part of the output path.
> 
> —
> Reply to this email directly or view it on GitHub.
>