Message100020
When using the function "tkFileDialog.askopenfiles()" on Windows 7 (32-bit) the following error occurs after choosing one or more arbitrary files:
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkFileDialog
>>> tkFileDialog.askopenfiles()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\lib-tk\tkFileDialog.py", line 163, in askopenfiles
ofiles.append(open(filename, mode))
IOError: [Errno 2] No such file or directory: u'C'
So it seems that the colon after "C" (the drive letter) is wrongly used as a delimiter. The functions "askopenfile" (for a single file to choose) and "askopenfilenames" (to choose only the filenames instead of open the files immediately) don't seem to be affected, furthermore the error doesn't occur on Linux or WinXP. |
|
Date |
User |
Action |
Args |
2010-02-24 09:52:05 | Patrick.Holz | set | recipients:
+ Patrick.Holz |
2010-02-24 09:52:05 | Patrick.Holz | set | messageid: <1267005125.4.0.826921627128.issue8010@psf.upfronthosting.co.za> |
2010-02-24 09:52:04 | Patrick.Holz | link | issue8010 messages |
2010-02-24 09:52:03 | Patrick.Holz | create | |
|