view idpicker_wrapper.py @ 17:fdd81c7b7fd5 draft

Uploaded
author galaxyp
date Tue, 25 Jun 2013 16:31:39 -0400
parents 35cf23cd8c3d
children
line wrap: on
line source

#!/usr/bin/env python
import optparse
import sys
import os


def stop_err(msg):
    sys.stderr.write("%s\n" % msg)
    sys.exit(-1)


def build_groups(input):
    os.makedir("input_directory")


def main():
    parser = optparse.OptionParser()
    parser.add_option('--input')
    parser.add_option('--output')
    (options, args) = parser.parse_args()
    if not len(options.input):
        stop_err("No input file found")
    build_groups(options.input)

if __name__ == '__main__':
    main()