Stream: platform development

Topic: Getting the filename


view this post on Zulip Brian Hicks (Sep 11 2022 at 16:12):

Is there a way for a platform to get the file name that roc is invoked with? i’d like to use that in rbt to get the working directory for resolving paths

view this post on Zulip Brendan Hansknecht (Sep 11 2022 at 20:45):

I don't think so. Not sure it even makes sense. Since Roc ultimately compiles to an executable that could be run elsewhere without any roc invocation

view this post on Zulip Brendan Hansknecht (Sep 11 2022 at 20:48):

of course you could expose the current working directory or the path to the executable that was run and maybe those work.

view this post on Zulip Brian Hicks (Sep 12 2022 at 00:47):

Yeah, I figured the answer would be something like that. :sweat_smile:


Last updated: Jul 05 2025 at 12:14 UTC