diff --git a/rfswarm_manager/rfswarm.py b/rfswarm_manager/rfswarm.py index 240bb1631..2595b9373 100644 --- a/rfswarm_manager/rfswarm.py +++ b/rfswarm_manager/rfswarm.py @@ -455,7 +455,9 @@ class RFSwarmBase: save_ini = True - excludelibrariesdefault = "String,OperatingSystem,perftest" + # https://github.com/damies13/rfswarm/blob/master/Doc/rfswarm_manager.md#exclude-libraries + # default (BuiltIn,String,OperatingSystem,perftest) + excludelibrariesdefault = "BuiltIn,String,OperatingSystem,perftest" scriptcount = 0 scriptlist: Any = [{}] @@ -2979,9 +2981,17 @@ def run_start_threads(self): if "excludelibraries" in grp: base.robot_schedule["Agents"][nxtagent][grurid]["excludelibraries"] = grp["excludelibraries"] + else: + if "excludelibraries" in base.scriptdefaults: + base.robot_schedule["Agents"][nxtagent][grurid]["excludelibraries"] = base.scriptdefaults["excludelibraries"] + else: + base.robot_schedule["Agents"][nxtagent][grurid]["excludelibraries"] = base.excludelibrariesdefault if "robotoptions" in grp: base.robot_schedule["Agents"][nxtagent][grurid]["robotoptions"] = grp["robotoptions"] + else: + if "robotoptions" in base.scriptdefaults: + base.robot_schedule["Agents"][nxtagent][grurid]["robotoptions"] = base.scriptdefaults["robotoptions"] base.Agents[nxtagent]["AssignedRobots"] += 1 base.debugmsg(5, "base.Agents[", nxtagent, "][AssignedRobots]:", base.Agents[nxtagent]["AssignedRobots"])