lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Ulrich,

> I see 2 solutions without the need, YOU change anything:
> 1. is there a config/lua file, where i can append something to the lib search path?(sure, i need to be careful because different lua interpreters)
> 2. is there a config/lua file, where i can (pre)load librarys BEFORE zbs changes his project directory?

Yes, both options are available: go to Edit | Preferences | Settings:
System (or Settings: User) and add:

local G = ...
G.package.cpath = G.package.cpath..';'..G.ide.osclibs
require 'lpeg' --<-- if you want to load it right away, but it should
also work from the console.

Paul.

On Wed, Dec 18, 2013 at 11:40 PM, Ulrich Schmidt <u.sch.zw@gmx.de> wrote:
> Ok. But: i am a lazy guy ;)
> I dont want to write each zbs start your command line and much more
> important: i dont want to read each zbs start your mail caused by the fact
> that i cant remember your command line :D
>
> I see 2 solutions without the need, YOU change anything:
> 1. is there a config/lua file, where i can append something to the lib
> search path? (sure, i need to be careful because different lua interpreters)
> 2. is there a config/lua file, where i can (pre)load librarys BEFORE zbs
> changes his project directory?
>
> Thanks in advance.
> Ulrich.
>
> Am 19.12.2013 00:01, schrieb Paul K:
>
>>
>> You can still load those modules (and you only need to do it once per
>> session as it will be kept within the IDE process), you just need to
>> set the folder before running your command in the Local console:
>>
>>> wx.wxFileName(ide.editorFilename):SetCwd(); require 'lpeg'
>>
>>
>> Paul.
>
>