diff --git a/rfswarm_manager/rfswarm.py b/rfswarm_manager/rfswarm.py index d330b7297..80223c067 100644 --- a/rfswarm_manager/rfswarm.py +++ b/rfswarm_manager/rfswarm.py @@ -3213,7 +3213,7 @@ def sr_file_validate(self, r, *args): scriptfile = "" if not os.path.exists(scriptfile): - if base.args.nogui: + if not base.args.nogui: msg = "File:\n" + scriptfile + "\n\nwhich is saved in the scenaro file as a script cannot be found by RFSwarm Manager." msg += "\n\nScenario dir:\n" + base.config['Plan']['ScenarioDir'] tkm.showwarning("RFSwarm - Warning", msg) @@ -3223,7 +3223,7 @@ def sr_file_validate(self, r, *args): base.saveini() return False elif not os.path.isfile(scriptfile): - if base.args.nogui: + if not base.args.nogui: msg = "Path:\n" + scriptfile + "\n\nwhich is saved in the scenaro file as a script is not a file." msg += "\n\nScenario dir:\n" + base.config['Plan']['ScenarioDir'] tkm.showwarning("RFSwarm - Warning", msg)