Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import csv
  2. from sys import argv
  3.  
  4. scriptname, filename = argv
  5.  
  6. class caselist():
  7.     #The caselist class turns a .csv file into a list of cases
  8.     def __init__(self,filename):
  9.         self.case_file = open(filename, 'r')
  10.         self.the_list = []
  11.         self.case_csv_reader = csv.reader(self.case_file)
  12.         for line in self.case_csv_reader:
  13.             self.the_list.append(line)
  14.    
  15. c = caselist(filename)
  16. for case in  c.the_list:
  17.     print "%s\n" % case