glob in tcl/tk drops first char
Sverker Nilsson
sverker.is at home.se
Mon Jan 31 18:46:11 EST 2000
Hi,
I just started to try out Python end of last year. Seems really cool!
I have quite a few libraries installed now and it works great but I
run into a problem a few days ago that seems to have something to do
with Tk. I traced it down to the glob function in Tk/Tcl. It seems to
drop every first character in every filename. It showed up from using
tkfbox (called from tkFileDialog I think) but glob behaved the same
when called directly from wish.py. The native wish8.0 works all
right. Anybody has any idea? Thanks!
This shows how the error appears - glob drops every first char!
nicosys [19] ls wish*
wish.py* wish.pyc
nicosys [20] python wish.py
% glob wish*
TclError: no files matched glob pattern "wish*"
% glob *.py
ttrDialog.py anPage.py imeViewer.py hellWindow.py rownian.py
anvasevents.py ialog.py lectrons.py anoi.py ello.py magedraw.py
mageview.py ill.py isttree.py box.py ewmenubardemo.py ptionmenu.py
aint.py edemo.py egexdemo.py mt.py olitaire.py ortvisu.py vkill.py
witch.py kman.py ish.py
% glob ish*
ish.py ish.pyc
% nicosys [21]
This is some of my configuration:
nicosys [23] python
Python 1.5.2 (#25, Jan 31 2000, 00:36:50) [GCC 2.7.2.1] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>
nicosys [1] uname -a
Linux nicosys 2.0.29 #4 Thu Jan 27 01:47:58 MET 2000 i586 unknown
nicosys [2] ldd /usr/local/bin/python
libreadline.so.2 => /usr/lib/libreadline.so.2.0.0
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libtk8.0.so => /usr/lib/libtk8.0.so
libtcl8.0.so => /usr/lib/libtcl8.0.so
libX11.so.6 => /usr/X11/lib/libX11.so.6.1
libdl.so.1 => /lib/libdl.so.1.8.5
libm.so.5 => /lib/libm.so.5.0.9
libc.so.5 => /lib/libc.so.5.4.46
nicosys [3] ldd /usr/lib/libtk8.0.so
/usr/lib/libtk8.0.so => /usr/lib/libtk8.0.so
libc.so.5 => /lib/libc.so.5.4.46
nicosys [5] ldd /usr/lib/libtcl8.0.so
/usr/lib/libtcl8.0.so => /usr/lib/libtcl8.0.so
libc.so.5 => /lib/libc.so.5.4.46
nicosys [7] ldd /lib/libc.so.5.4.46
/lib/libc.so.5.4.46 => /lib/libc.so.5.4.46
nicosys [8] gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.1/specs
gcc version 2.7.2.1
nicosys [9]
Regards,
Sverker Nilsson
More information about the Python-list
mailing list