#! /usr/bin/python
import rowingdata
from sys import argv


def painsledtoc2():
    readFile = argv[1]

    try:
	rowerFile = argv[2]
    except IndexError:
	rowerFile = "defaultrower.txt"

	rower = rowingdata.getrower(rowerFile)

	row = rowingdata.rowingdata(readFile,rower=rower)

	row.uploadtoc2(rowerFile=rowerFile)



	print "done "+readFile
