[Pas-dev] fixing relatively included config files.
Status: Beta
Brought to you by:
mortis
From: Mental P. <me...@ne...> - 2002-11-22 15:33:15
|
Hey, doing this didnt work: include ../customproduct/conf/common.conf I modified Config.pm. When you're trying to include a file, it does this now: if($line =3D~ m|^\s*include\s+(\S+)\s*$|) { my $file =3D $1; if (! -f $file){ $file =3D $ENV{PAS_BASE}.$file; if (! -f $file){ die "Error including $file no file found.\n"; } } $self->config_files($self->config_files(),$file); unshift(@lines,$self->getFileAsLines($file)); next; } Are we interested in having this commited? It should probably be refactored a little, but it fixes my problem of relative include directives.....=20 --=20 Mental Patient <me...@ne...> |