import sys
import os

cur_file = os.path.abspath(__file__)
django_dir = os.path.abspath(os.path.join(os.path.dirname(cur_file), '..'))
sys.path.append(django_dir)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

import vouchers.import_budget
from django.db import connection

def spring_2010():
    default_addr = 'ua-treasurer@mit.edu'
    committee_file = open('/mit/ua/officers/treasurer/resources/software/committees.csv')
    budget_file = open('/mit/ua/officers/treasurer/budgeting/FY10/private/spring-working.csv')
    term_name = 'Spring 2010'
    vouchers.import_budget.main(default_addr, committee_file, budget_file, term_name, )

if __name__ == '__main__':
    spring_2010()
