I just found out myself:
At the beginning of the main code, add the following code:
true = code:add_pathz(filename:dirname(escript:script_name()) ++ "/../dir-of-some-beams"),
I recommend always testing true with these code functions, because it is easy to type code:add_pathsz , which wants a list of lines and always returns ok , even if you pass it only a line, but it does not set the code path to a single directory (which is quite annoying btw).
Peer stritzinger
source share