[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: package.searchpath
- From: Dirk Laurie <dpl@...>
- Date: Sun, 28 Nov 2010 11:29:32 +0200
package.searchpath('myprog.lua','.') can't find './myprog.lua'.
package.searchpath('myprog','./?.lua') is needed instead.
This is an unfortunate (and maybe unintended?) consequence of the
way dots in filenames are treated by package.searchpath.
If it is too late to use a less common character like '%' in the
beta version of Lua 5.2, a line in the Reference Manual detailing
this case would be helpful.
Dirk