[Gambas-user] Gambas script gbs Application.Path Args[0]
Bruce Steers
bsteers4 at gmail.com
Mon Nov 2 17:30:04 CET 2020
Hi Benoít.
Would you consider this simple modification to gbs3?
https://gitlab.com/bsteers4/gambas/-/commit/19cbe5853e9a3079bae2d4503c1627fc538bd850
I've made the scripter set up 2 Env variables as it runs as script.
Env["Application.Path"] and
Env["Args[0]"]
of course they emulate the same as a normal applications would.
I kept the naming Application.Path and Args[0] so converting an application
to a script would require minimum modifications.
I've tested it and it works great :)
Cheers
BruceS
On Sun, 1 Nov 2020 at 18:24, Bruce Steers <bsteers4 at gmail.com> wrote:
>
> Application.Path and Args[0] just give the temporary /tmp/gambas-1000
> location
>
> tia
> BruceS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201102/2cf2089e/attachment.htm>
More information about the User
mailing list