import os
import sys

from gavo import api

tableName = "twosystems"
if len(sys.argv)>1:
	tableName = sys.argv[1]
rd = api.getRD(os.path.abspath("stctest.rd"))
table = api.TableForDef(rd.getById(tableName))
print api.getAsVOTable(table)
