comparison idpicker_wrapper.py @ 0:35cf23cd8c3d draft

Initial commit.
author galaxyp
date Fri, 10 May 2013 17:06:14 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:35cf23cd8c3d
1 #!/usr/bin/env python
2 import optparse
3 import sys
4 import os
5
6
7 def stop_err(msg):
8 sys.stderr.write("%s\n" % msg)
9 sys.exit(-1)
10
11
12 def build_groups(input):
13 os.makedir("input_directory")
14
15
16 def main():
17 parser = optparse.OptionParser()
18 parser.add_option('--input')
19 parser.add_option('--output')
20 (options, args) = parser.parse_args()
21 if not len(options.input):
22 stop_err("No input file found")
23 build_groups(options.input)
24
25 if __name__ == '__main__':
26 main()