Hi,
I develop a library and need the path of the calling robot file.
I have already looked at the env but couldn’t find it
Is there a way to get this information?
Thanks!
It’s probably easiest to pass the source to the library explicitly:
Library Example ${CURDIR}${/}this_file.robot
There’s ${SUITE SOURCE} variable that contains the source of the current suite, but it doesn’t work if you import the library in a resource file and want to get that path. Anyway, if that is enough you could query it automatically using BuiltIn.get_variable_value
in your library and avoid the need to give it as an argument.
1 Like
cool, thaks for the reply.
BuiltIn().get_variable_value("${SUITE SOURCE}")
works for me!
2 Likes