You could use try, except to try loading from one path with the other as a fallback or only use local images.
···
-----Original Message-----
From: matt_bali@mac.hush.com
Sent: 15 Jun 2012 11:11:00 GMT
To: wxpython-users@googlegroups.com
Subject: Re: [wxPython-users] Problem loading PNG images under Cygwin
Your debug output clearly shows that you are trying to load the file from
/usr/lib but the terminal in the background shows that the files exist under
/lib this suggests that you are using a relative path or one generated from
the environment variables and that you environment variables are different
between Winpdb to those under SPE, Pype, etc. Do you by any chance have more
than one copy of python 2.6 installed with mpl only installed on one of them?
Yes, the problem seem to be path related.
Root Cygwin folder is in "C:\cygwin".
In Cygwin shell there are two identical folders:
/lib/
and
/usr/lib/
with same content, so one is just link or other through some Cygwin instrument. "ls" doesn't show any info about symbolic link or similar, but if I open Explorer I can't see "/usr/lib/" folder but just /lib/. Perhaps similarly wx can't see it.
Any ideas how to approach this or should I post in Cygwin mailing list instead?
Thanks
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en