Bug in os.path.isfile
Verfasst: Mittwoch 22. August 2007, 03:26
Code: Alles auswählen
Traceback (most recent call last):
File "program.py", line 105, in selectAXTFile
if os.path.isfile(path):
File "D:\Programme\Python25\Lib\ntpath.py", line 286, in isfile
return stat.S_ISREG(st.st_mode)
File "D:\Programme\Python25\Lib\stat.py", line 55, in S_ISREG
return S_IFMT(mode) == S_IFREG
RuntimeError: maximum recursion depth exceeded
Der Pfad, der ueberprueft wird, ist eine Datei im Verzeichnis des Programms. Ausgeloest wird das ganze durch ein EVT_TEXT von wxPython im TextCtrl eines FilePickerCtrl's.