view idpicker_wrapper.py @ 4:144c40322aef draft

Uploaded
author galaxyp
date Fri, 21 Jun 2013 16:49:21 -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()