Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- names = open('toget', 'r').read().splitlines() #list of all the MCP names we wanted to get info for
- rows = []
- for row in csv.DictReader(open('MCP/conf/classes.csv', 'r'), delimiter=',', quotechar='"', quoting=csv.QUOTE_ALL):
- rows.append(row)
- print "client:"
- for name in names:
- notch = ""
- for row in rows:
- if row['side'] == '0' and row['name'] == name:
- notch = row['notch']
- break
- print notch
- print "server:"
- for name in names:
- notch = ""
- for row in rows:
- if row['side'] == '1' and row['name'] == name:
- notch = row['notch']
- break
- print notch
Advertisement
Add Comment
Please, Sign In to add comment