lua-users home
lua-l archive

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


Thanks a lot! :)
It works like expected.

Gretings.
Ulrich.

Am 19.12.2013 16:35, schrieb Paul K:
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.