[Pgu-devel] FileDialog bug
Status: Beta
Brought to you by:
philhassey
|
From: Jason L. <tel...@gm...> - 2006-04-26 07:25:12
|
Hi
I find a minor bug about FileDialog. If current path includes a directory
named such as !XXXX ( ! is the first letter), the parent directory sign "..=
"
will not be the top item of the list. This bug seems to be fixed by changin=
g
some code of FileDialog._list_dir() in dialog.py
119 if '..' not in dirs: dirs.append('..') # since python documentation
says dirs =3D os.listdir() would not include '..' and '.', this line can
be commented safely.
120 dirs.sort()
to
# if '..' not in dirs: dirs.append('..')
dirs.sort()
dirs =3D ['..'] + dirs
|