Re: Get the directory of the module

2012-06-11 Thread Joshua Marantz
Modules register a configuration callback called on every declared option. So they don't need to know where the configuration file is; they get called with the parsed config-file options. See http://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/examples/mod_example_hooks.cfunction cmd_example

Re: Get the directory of the module

2012-06-11 Thread Jerry Stuckle
But how would he know where his .conf file is installed? If he could find where his .conf file is installed, he could just put the data there. On 6/11/2012 8:19 PM, Joshua Marantz wrote: I think we are saying the same thing, right? To "tell his module" I'm suggesting he write the path where

Re: Get the directory of the module

2012-06-11 Thread Joshua Marantz
I think we are saying the same thing, right? To "tell his module" I'm suggesting he write the path where the .so is installed into his .conf file so that he can get the path at runtime. On Mon, Jun 11, 2012 at 8:02 PM, Jerry Stuckle wrote: > In that case he should also be able to tell his module

Re: Get the directory of the module

2012-06-11 Thread Jerry Stuckle
In that case he should also be able to tell his module where the files are. On 6/11/2012 7:40 PM, Joshua Marantz wrote: I think he wants to write bytecodes during module installation when he will have write access. During installation can you also write a .conf template showing your module wher

Re: Get the directory of the module

2012-06-11 Thread Joshua Marantz
I think he wants to write bytecodes during module installation when he will have write access. During installation can you also write a .conf template showing your module where the bytecodes are? Josh On Jun 11, 2012 7:29 PM, "Jerry Stuckle" wrote: > > > On 6/11/2012 5:49 PM, Ben Noordhuis wro

Re: Get the directory of the module

2012-06-11 Thread Jerry Stuckle
On 6/11/2012 5:49 PM, Ben Noordhuis wrote: On Mon, Jun 11, 2012 at 10:10 PM, Bart Wiegmans wrote: Hello everybody, For a project I'm doing, I need to install a few bytecode files alongside my module. I was planning on placing them in the modules directory but I realised that at runtime I do

Re: Get the directory of the module

2012-06-11 Thread Ben Noordhuis
On Mon, Jun 11, 2012 at 10:10 PM, Bart Wiegmans wrote: > Hello everybody, > > For a project I'm doing, I need to install a few bytecode files > alongside my module. I was planning on placing them in the modules > directory but I realised that at runtime I do not know where that is. > What is more,

Get the directory of the module

2012-06-11 Thread Bart Wiegmans
Hello everybody, For a project I'm doing, I need to install a few bytecode files alongside my module. I was planning on placing them in the modules directory but I realised that at runtime I do not know where that is. What is more, that directory may (and will, as a matter of fact) vary during ins