Is there any way to get the path of the current file? #2604
-
I want to read a file that is in the same directory as the Gleam file that's trying to read it. When using a relative ( Is there any way to get the path of the Gleam file from the Gleam program, so that this is doable? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There is not, no. Gleam isn't a scripting language so there's no practical definition of "current file". The source code of the program may not be present on the computer running the application at all. |
Beta Was this translation helpful? Give feedback.
-
Coming on this late. Out of curiosity, what were you using to read the file? |
Beta Was this translation helpful? Give feedback.
There is not, no. Gleam isn't a scripting language so there's no practical definition of "current file". The source code of the program may not be present on the computer running the application at all.