News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
[WIP] MurgaLua Reference Tool
Author Message

Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: [WIP] MurgaLua Reference Tool - a little help?

mikshaw Wrote:
I thought OSX was based on BSD, which would mean that it has the same directory separator as Linux. What do you get when you print(arg[0]) or print(demo_appdir)? does it include a full path to the script?

Hi mirkshaw,

the answer is quite simple Big Grin
you prefer, executing widget.lua directly and use #!/usr/bin/murgaLua...

This is very easy, but not default at any system...
My binpath is /usr/local/bin/murgaLua and your default didn't work.

But when executing murgaLua widget.lua, you script fails and returns NIL.
murgaLua: widgets.lua:215: cannot open widgets.lua/script: Not a directory
stack traceback:
[C]: in function 'dir'
widgets.lua:215: in main chunk

You have to check, from where your script is called and get different range of parameters... When executing "murgaLua widget.lua" you have an offeset of +1

Another issue, why not using #! is, when downloading and extracting to any directory, you have no execute rights for widget.lua.
This can be handled by an installer script only Big Grin


This post was last modified: 08-20-2007 02:57 AM by chrimo.

08-20-2007 02:54 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
[WIP] MurgaLua Reference Tool - mikshaw - 07-10-2007, 05:00 PM
RE: [WIP] MurgaLua Reference Tool - a little help? - chrimo - 08-20-2007 02:54 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: