[Gambas-user] Path specification
Benoît Minisini
g4mba5 at gmail.com
Tue Nov 20 14:33:41 CET 2018
Le 20/11/2018 à 14:07, Bruce a écrit :
> Well, I wasn't going to, but I will.
>
> Relative pathing, as it is now, gives you access to the immediate
> executable archive or the ultimate parent archive. It works up the
> dependency chain.
>
> [...]
The current syntax of relative paths is :
'../<path>' ==> access to a file located in the calling component, i.e.
the component of the first method in the stack backtrace that is not in
the same component than the current one ; the top-level component being
the current project.
'.../<path>' ==> access to a file located in the current project.
'./<component>/<path>' ==> access to a file located in the specified
component, provided that, of course, the component has been loaded.
Otherwise, './<path>' or just '<relative path>' ==> access to a file
located in the current component.
I hope it's more clear now.
The './<component>/<path>' syntax may change before the 3.12 release.
Maybe for something like '.[<component>]/<path>', or
'..<component>/<path>', or something else.
Regards,
--
Benoît Minisini
More information about the User
mailing list