[pgh-pm] use of require and full paths

James O'Kane jo2y at midnightlinux.com
Tue Jul 6 19:29:47 CDT 2004


On Tue, 6 Jul 2004, Daniel J. Wright wrote:

>
> I don't think it has changed.  I don't think that ever should have worked.
>  The only way that should work is if "/" is in @INC.
>
> Your options are:
>
> 1. put "/" in @INC

Is this a common thing to do?

> 2. change SITE_CONFIG_FILE to just be 'RT_SiteConfig.pm'
> 3. change your "require" command to a "do" command.

I'd rather not do these if I don't have to.

> I'm running RT 3.0.7, and I can't find the SITE_CONFIG_FILE variable in
> the source code anywhere.  It must be something new.

I have an installation of 3.0.7_01 and it has this. (If I remember right,
_01 was only to fix a postgresqlism bug.)

Look in rt3/lib/RT.pm line 52.


-james




More information about the pgh-pm mailing list