[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Obtain the actual system path
[Thread Prev] | [Thread Next]
- Subject: Re: Obtain the actual system path
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Wed, 4 Sep 2024 11:56:53 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Application.Path will give the directory the program was started in. But like the other bruce says when you compile an executable and run the application the actual project files referenced by "./path" are self contained in the executable archive. they are a read only copy of the files in the project directory Hint. If you folder was hidden (named .var) it's path will be Application Path &/ ".var" and it's contents will NOT be added to the executable as they are in a hidden folder. That seems best if you only use the full path Application.Path &/ ".var" you are accessing the real folder and the folder contents will never be added to the executable (where they are not needed) Respects BruceS On Wed, 4 Sept 2024 at 08:00, System64 Development <64xcode@xxxxxxxxx> wrote: > Hi, > I want to get the actual path of the files hosted in the project but I > can't get it. > I explain in more detail. > In my project there is, for example, a directory that contains the icons: > > "./var/svg/ui" > > In the code when operating with these files, for example to read the > content I use something like: > > File.Load(“./var/svg/ui/unarchivo.svg”) > > But if I want to get the complete linux system path. That would be > something like: > “/home/myuser/gambas/myproject/var/svg/ui/somefile.svg”. > > How to get it through gambas code? > > Thanks. > > Martín. > > >
Re: Obtain the actual system path | BB <adamnt42@xxxxxxxxx> |
Re: Obtain the actual system path | System64 Development <64xcode@xxxxxxxxx> |
Obtain the actual system path | System64 Development <64xcode@xxxxxxxxx> |