mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Additional effort is needed to abstract more previously existing functionality out of web controllers. Add script that is able to create a sequencer configuration for the sample tracking system using API.
16 lines
356 B
Python
16 lines
356 B
Python
#!/usr/bin/env python
|
|
|
|
import os, sys
|
|
sys.path.insert( 0, os.path.dirname( __file__ ) )
|
|
from common import submit
|
|
|
|
try:
|
|
data = {}
|
|
data[ 'xml_text' ] = open( sys.argv[3] ).read()
|
|
except IndexError:
|
|
print 'usage: %s key url form_xml_description_file' % os.path.basename( sys.argv[0] )
|
|
sys.exit( 1 )
|
|
|
|
|
|
submit( sys.argv[1], sys.argv[2], data )
|