Re: [wxlua-users] Another small paths problem...

2009-05-28 Thread lostgallifreyan
John Labenski wrote: (28/05/2009 23:56) >> PATH=string.gsub(arg[0],"^(.+[/\\]).+$","%1").."Bitmaps/" >> >> It works, but it's a clumsy method. At least it's portable, it accepts >> non-Windows path separators... > >This is a typical problem of finding where a program's external >resources are a

Re: [wxlua-users] Another small paths problem...

2009-05-28 Thread John Labenski
On Thu, May 28, 2009 at 11:19 AM, lostgallifreyan wrote: > This appears with both the older and latest wxLua, and might even be native > to Lua, but I don't think so. > > If I open a data file in the same location as the script, bitmaps for toolbar > buttons in a subdirectory are found, if I ope

[wxlua-users] Another small paths problem...

2009-05-28 Thread lostgallifreyan
This appears with both the older and latest wxLua, and might even be native to Lua, but I don't think so. I'm using the Windows registry to associate files, such that I right click on a data file, select an option I put there to open it with a script I associated it with, the script in turn bei