[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: BB <adamnt42@xxxxxxxxx>
- Date: Wed, 4 Sep 2024 20:11:47 +0930
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 4/9/24 4:37 pm, System64 Development wrote:
Note! Files inside your project are NOT files in the disk directory system. They are part of the executable _archive._ Thus there is no such linux system path at runtime outside the IDE.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.
Having said that. What you seem to be looking for is the source code directory, which you should know but the application doesn't. Think what you're asking "Hey project, where is your source code stored?"
b
Obtain the actual system path | System64 Development <64xcode@xxxxxxxxx> |