You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Carlos <ck...@myway.com> on 2002/12/30 20:24:34 UTC
relative path is not working to load files
Thanks to reply my email about Loading a file from a different directory tree using execute.
I am not using EmbperlObject.
>Hi,
>
>You can pass relative paths to Execute, >like '../some/other/page.epl'
I have tried using relative path but still does not work.
My problem is:
> Do you know how to load a file with execute from a different directory tree?
>
> i have a folder modules/Recommend/recommend.epl
>
> and other folder includes/subs.epl
>
> folders subs and modules are at the same level.
>
>
> if i try to Execute ('../subs.epl') from recommend.epl
>
> I get the message :
> [2507]ERR: 30: recommend.epl(20): Not found includes/subs.epl
>
> Do you know how can i load the file subs.epl without copy it to
> modules/Recommend?
Somebody knows other way to load the file?
Thank you in advance for you help
Carlos Kassab
_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: relative path is not working to load files
Posted by "Luiz Fernando B. Ribeiro" <lu...@engenhosolucoes.com.br>.
Em Mon, 30 Dec 2002 14:24:34 -0500 (EST)
"Carlos" <ck...@myway.com> escreveu:
>
> Thanks to reply my email about Loading a file from a different
> directory tree using execute.
>
> I am not using EmbperlObject.
> >Hi,
> >
> >You can pass relative paths to Execute, >like
> >'../some/other/page.epl'
>
> I have tried using relative path but still does not work.
>
> My problem is:
> > Do you know how to load a file with execute from a different
> > directory tree?
> >
> > i have a folder modules/Recommend/recommend.epl
> >
> > and other folder includes/subs.epl
> >
> > folders subs and modules are at the same level.
> >
> >
> > if i try to Execute ('../subs.epl') from recommend.epl
Here is the mistake, you should use: Execute ('../includes/subs.epl').
Please check your sintax more carefully.
Regards,
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: relative path is not working to load files
Posted by Gerald Richter <ri...@ecos.de>.
>
> I have tried using relative path but still does not work.
>
Relative path work. In case they don't you may put a ./ in front of your
path e.g. ./../includes/sub.epl, but this shouldn't be necessary in normal
cases.
The paths you describe and the error messages, doesn't fit together. PLease
describe more detailed what you are doing
Gerald
> My problem is:
> > Do you know how to load a file with execute from a different directory
tree?
> >
> > i have a folder modules/Recommend/recommend.epl
> >
> > and other folder includes/subs.epl
> >
> > folders subs and modules are at the same level.
> >
> >
> > if i try to Execute ('../subs.epl') from recommend.epl
> >
> > I get the message :
> > [2507]ERR: 30: recommend.epl(20): Not found includes/subs.epl
> >
> > Do you know how can i load the file subs.epl without copy it to
> > modules/Recommend?
>
> Somebody knows other way to load the file?
>
> Thank you in advance for you help
>
> Carlos Kassab
>
> _______________________________________________
> No banners. No pop-ups. No kidding.
> Introducing My Way - http://www.myway.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org