[PD] Lua: request for 'require'...

Mike McGonagle mjmogo at gmail.com
Wed May 21 19:39:06 CEST 2008


Well, I also tried

require "/absolute/path/to/myfile"


and this worked, also... do note that there is no '.lua' at the end of the
path/file name

Mike


On Wed, May 21, 2008 at 12:28 PM, Mike McGonagle <mjmogo at gmail.com> wrote:

>
>
> > > self:dofile("myscript.lua").
>>>
>>
> I tried this as the following:
>
> dofile("/absolute/path/to/myfile.lua")
>
> and this works...
>
>
>> package.path = "/my/pdlua/files/?.lua;" .. package.path
>>>
>>
> I also tried this as follows
>
> package.path = "/absolute/path/to/?.lua;" .. package.path
> require "myfile.lua"
>
> and this works...
>
> Thanks for your help.
>
> Mike
>
>
> --
> Peace may sound simple—one beautiful word— but it requires everything we
> have, every quality, every strength, every dream, every high ideal.
> —Yehudi Menuhin (1916–1999), musician
>



-- 
Peace may sound simple—one beautiful word— but it requires everything we
have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080521/60d91513/attachment.htm>


More information about the Pd-list mailing list