PageRenderTime 49ms CodeModel.GetById 45ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/api/library_create_library.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 19 lines | 15 code | 3 blank | 1 comment | 0 complexity | 723352a1b9a3f9c489fec70158a381e6 MD5 | raw file
 1#!/usr/bin/env python
 2
 3import os, sys
 4sys.path.insert( 0, os.path.dirname( __file__ ) )
 5from common import submit
 6
 7try:
 8    data = {}
 9    data[ 'name' ] = sys.argv[3]
10except IndexError:
11    print 'usage: %s key url name [description] [synopsys]' % os.path.basename( sys.argv[0] )
12    sys.exit( 1 )
13try:
14    data[ 'description' ] = sys.argv[4]
15    data[ 'synopsis' ] = sys.argv[5]
16except IndexError:
17    pass
18
19submit( sys.argv[1], sys.argv[2], data )