This is a continuation of problems with the program posted here:

I started thinking there was something wrong with my statement to open the csv file, using the reader.

reader = csv.reader(open('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv', 'rb'))

I put a test statement above the open statement and the test worked the way it was supposed to but when I move it below the open statement, it no longer works. Then, I ran

if os.path.exists('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv'):
    print 100
    print 2

and got the else branch. I don't see why it would be telling me that this file path does not exist since I can look in the folder and clearly see that it does. I get no errors when running


in windows cmd and I can open the csv file just fine in a Python command line and then get it to do everything I need it to do...I'm running out of ideas and options of things to try.

fixed it...sorry, the error wasn't in the Python code, it was in the program I was running the Python code with.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.