Skip to content

Commit

Permalink
Really small correction to Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekKuczynski committed May 24, 2024
1 parent 51d898f commit 618ac57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rfswarm_manager/rfswarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 618ac57

Please sign in to comment.