Is it possible to build the string using the separator method of the 
File 
class, store it in a string, and refer to it in the ::requires statement?  
e.g.
        reqPath = 'ooRexx'.file~separator'complex.rex'

Leslie

On 2018-10-14 15:34:18 Rick McGuire wrote:
> Really not good practice to do this. A better choice would be to add the
> subdirectory to your path and just use the simple name.
>
> Rick
>
> On Sun, Oct 14, 2018 at 3:52 PM P.O. Jonsson <oor...@jonases.se> wrote:
> > Dear ooRexxers,
> >
> > I need to require a file from a subdirectory, like this
> >
> > ::requires 'ooRexx/complex.rex'     -- load the complex class
> >
> > My question is: how can I make this so that it works on both Mac and Win?
> >
> > The Win version of this would be (I guess, no Win machine at hand):
> > ::requires 'ooRexx\complex.rex'     -- load the complex class
> >
> > I need something that works on all ooRexx platforms (Win, Darwin, Linux,
> > AIX, ARM-32 and any other)
> >
> > Von meinen Macbook gesendet
> >
> > Hälsningar/Regards/Grüsse,
> > P.O. Jonsson
> > oor...@jonases.se
> >
> >
> >
> > _______________________________________________
> > Oorexx-users mailing list
> > Oorexx-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/oorexx-users



_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to