Line 4 of the Mast013.py script is a syntax error. It looks like some extra characters got inserted, or perhaps a extra newline in the middle of the line before.
Bob
On Jan 9, 2020, at 11:36 AM, Scott Walton <jscottwalton@...> wrote:
I building a number of scripts to set the signals. Each script represents one Signal Mast. I want to run a script to invoke all the masts. When I run the script with the list of scripts, it fails, indicating that it expects an EOF in one of the subscripts. The sub-scripts are all of the same form (defining a class based on Siglet, and then starting it). All the scripts in the list are valid and running properly when invoked from the Script Entry window or the Run Script menu item. The basic form of the script exection is:
import java
import java.beans
import jmri
execfile(jmri.util.FileUtil.getExternalFilename("scripts:Mast001.py"))
execfile(jmri.util.FileUtil.getExternalFilename("scripts:Mast002.py"))
and so on. It seems to fail after a certain number of scripts are invoked. Should there be additional code in the Siglet script (perhaps a return?).
I have upload the list of scripts ("Mast_List.py") and two of the scripts to "Problems being worked" folder "Scott_Walton".
Any thoughts on what I might be doning wrong?
Scott Walton
--
Bob Jacobsen
rgj1927@...