Hi @Olga_Galvanova, I’ll check this, the dofile('./other-file.lua')
should work for relative names, but if it’s used from a function/callback used in a dialog that runs in the background, it might be a problem if you can
local object = dofile(...)
at the header of your script and then using the object
in the onclick callback, I think that might be the best solution at the moment.
(This is because the “current script path” is lost when we exit the script, but the dialog is still running)