[Tutor] upper and lower case input for file name

Bryan Fodness bryan.fodness at gmail.com
Fri Dec 14 17:14:13 CET 2007


Is there an easy way that an input can be upper or lower case?

The file name is TEST.TXT, and I get.

-------------------------------------------------------------------------

Enter File (if not local, enter path):    test.txt

Traceback (most recent call last):
  File "test.py", line 52, in <module>
    for line in open(file) :
IOError: [Errno 2] No such file or directory: 'test.txt'

-------------------------------------------------------------------------

This is a non-issue on Windows, but now I have migrated to Ubuntu.

Bryan


-- 
"The game of science can accurately be described as a never-ending insult to
human intelligence." - João Magueijo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071214/aa5a4667/attachment.htm 


More information about the Tutor mailing list