[module] cygwin directory browser

Mark Hadfield m.hadfield at niwa.cri.nz
Mon Jan 21 20:21:35 EST 2002


"Anton Vredegoor" <anton at vredegoor.doge.nl> wrote in message
news:a29m45$jlp$1 at news.hccnet.nl...
> I could not find a graphical tool to change the working directory for
> cygwin, so I wrote one myself.
> ...

When I try it I get an exception (traceback below my sig). The file that it
says is missing...

"/disk0/Program Files/Python/Python22/Tools/idle/Icons/folder.gif"

...is not missing! (BTW this is a Cygwin Unix-style path constructed from
the Windows path with the substitution "C:\" -> /disk0.)

Do you think it could have a problem with spaces in directory names?

---
Mark Hadfield
m.hadfield at niwa.co.nz  http://katipo.niwa.co.nz/~hadfield
National Institute for Water and Atmospheric Research


Traceback (most recent call last):
  File "cygdir.py", line 100, in ?
    test()
  File "cygdir.py", line 96, in test
    node.expand()
  File "/disk0/Program Files/Python/Python22/Tools/idle/TreeWidget.py", line
132, in expand
    self.update()
  File "/disk0/Program Files/Python/Python22/Tools/idle/TreeWidget.py", line
171, in update
    self.draw(7, 2)
  File "/disk0/Program Files/Python/Python22/Tools/idle/TreeWidget.py", line
179, in draw
    self.drawicon()
  File "/disk0/Program Files/Python/Python22/Tools/idle/TreeWidget.py", line
224, in drawicon
    image = self.geticonimage(imagename)
  File "/disk0/Program Files/Python/Python22/Tools/idle/TreeWidget.py", line
86, in geticonimage
    image = PhotoImage(master=self.canvas, file=fullname)
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 2997, in __init__
    apply(Image.__init__, (self, 'photo', name, cnf, master), kw)
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 2953, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't open "/disk0/Program
Files/Python/Python22/Tools/idle/Icons/folder.gif": no such file or
directory






More information about the Python-list mailing list