lua-users home
lua-l archive

Re: package location awareness?

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


I think your problem is solved in 5.1
IF you replace the dofile() with a loadfile().
In 5.1 work4 loadfile() uses the package.path to load the script just
as require does. Hence, EOP.
Hopefully, in 5.1 dofile will have similar behaviour to loadfile(). Which would
also be end of problem.
DB

AltStyle によって変換されたページ (->オリジナル) /