Files
galaxy/scripts/api/requests_update_state.py
T
Nicola Soranzo d85db9daa6 Use __file__ when adding paths to sys.path instead of os.getcwd() .
Also insert additional paths in position 1 unless strictly necessary.
2016-02-18 15:45:15 +00:00

15 lines
300 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
from common import update
try:
data = {}
data[ 'update_type' ] = 'request_state'
except IndexError:
print 'usage: %s key url' % os.path.basename( sys.argv[0] )
sys.exit( 1 )
update( sys.argv[1], sys.argv[2], data, return_formatted=True )