<div><span style="font-size: 14px;">check conf/autoload_configs/lua.conf.xml. &nbsp;the module-directory and script-directory params contain the various paths that require will search for c modules and lua scripts respectively.</span></div><div><span style="font-size: 14px;"><br></span></div><div><span style="font-size: 14px;">the question marks are replaced by what you pass to require, with the exception that dots are converted to path separators.</span></div><div><span style="font-size: 14px;"><br></span></div><div><span style="font-size: 14px;">so if you have '/path/to/scripts/?.lua', and you do 'require "foo.lua"', it will look for '/path/to/scripts/foo/lua.lua' (i.e., replacing the ? with foo/lua). &nbsp;if you 'require "foo"', then you'll of course get '/path/to/scripts/foo.lua'.</span></div><div><span style="font-size: 14px;"><br></span></div><div><span style="font-size: 14px;">hope this helps.</span></div><div><span style="font-size: 14px;"><br></span></div><div><span style="font-size: 14px;">hunmonk</span></div>
                <div><div><br></div><div><br></div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Monday, December 26, 2011 at 8:48 AM, Juan Antonio IbaƱez Santorum wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>Hello!<div><br></div><div>&nbsp; &nbsp;I have one doubt about requier in Lua. I have one module coded in a fille called logging.lua. Why must I create '/usr/local/share/lua/5.1/logging/lua.lua' to be included in my main lua script instead creating '/usr/local/share/lua/5.1/logging.lua'?</div>

<div><br></div><div>Regards</div>
</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>