I am not sure you are aware that the module itself already gets this information: ---- file temp.lua print(...) $ lua -l temp --> temp ./temp.lua Maybe 'require' could simply return this information as a second result? -- Roberto