Skip to content

Commit

Permalink
fixup! Implement the Correlator special suite
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Feb 17, 2022
1 parent 48df603 commit e685bbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extra_foam/special_suite/correlator_w.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,9 @@ def _saveContext(self):
path = QFileDialog.getSaveFileName(self, "Save context", filter="Python (*.py)")[0]

if len(path) > 0:
if not path.endswith(".py"):
path += ".py"

with open(path, "w") as context_file:
context_file.write(self._editor.text())
context_file.flush()
Expand Down

0 comments on commit e685bbe

Please sign in to comment.