[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: package location awareness?
- From: PA <petite.abeille@...>
- Date: Thu, 3 Feb 2005 14:14:30 +0100
On Feb 03, 2005, at 04:29, Asko Kauppi wrote:
I think it's rather rediculous for all this code to be needed (in
_every_ Lua script that needs something from "where it came from") but
currently, there does not seem to be a better way?
Here is want I'm doing presently:
local aBundle = LUBundle.bundleWithName( "MyClass" )
print( "pathForResource: "..aBundle.pathForResource( "picture", "png",
"Images", "en-US" ) )
print( "pathForResource: "..aBundle.pathForResource( "picture", "png",
"Images" ) )
print( "pathForResource: "..aBundle.pathForResource( "picture", "png" )
)
print( "pathForResource: "..aBundle.pathForResource( "picture" ) )
print( "pathForResource: "..aBundle.pathForResource( ) )
pathForResource: ./Resources/Images/picture.en-US.png
pathForResource: ./Resources/Images/picture.png
pathForResource: ./Resources/picture.png
pathForResource: ./Resources/picture
pathForResource: ./Resources/
http://dev.alt.textdrive.com/file/lu/LUBundle.lua
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/