[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Disabling dynamic loading
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 17 Jul 2008 15:52:48 -0300
> I'd like to disable dynamic loading. Is this possible? Is
> deleting package.loadlib sufficient, or will that cause other issues?
Just do package = nil or require = nil and package.loadlib = nil.
If you only want to disable dynamic loading of C libraries then you may
keep require but delete the C loader in package.loaders:
package.loaders[3] = nil
package.loaders[4] = nil