Message 1 of 2
Maya 2017 : Python open file API

Not applicable
11-28-2016
10:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I use to make a tool to bake animations keys into a particular readable format for another device.
Problem :
I've wrote a part which is parsing a .CSV file in order to load a configuration file.
I've been using this :
with open('C:/QUARANTINES/config_tmp.csv','wb') as csvfile: # specific delimiter reader = csv.reader(csvfile,delimiter=',',quotechar='|') for row in reader : # each row consists parameters delimited by ',' //doSomething forEach row
But it's not working anymore.
I'm digging into stackOverflow at the moment, to see if there's anything new, but I haven't found anything relevant yet...
Does anybody have a clue ? I'd appreciate 🙂
EDIT : To be accurate ; I precede this by import csv. I've been using this https://docs.python.org/2/library/csv.html?highlight=reader#csv.reader