In our GuiXT profile we work with two script directories, say D1 and D2. When a GuiXT script is found in D1, not in D2, and then the GuiXT script calls up an InputScript, this one will be searched in D1 only, not in D2. I would prefer each script (GuiXT script and InputScript) to be always searched in D2 first, and if not found there, then in D1. Is this possible?

GuiXT searches all dependent scripts (process=..., include ,...) in the directory where it has found the main script, but not in the other directories.

If  you set the profile option

CheckAllDirectories  Yes

GuiXT will search all specified directories for each script so that, in your case, the pushbutton script will be found.