Skip to content

Commit

Permalink
Add missing import and warn for missing platon
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Sep 9, 2023
1 parent f0a2afc commit f155fba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions finalcif/appwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,9 @@ def do_offline_checkcif(self) -> None:
log_widget=self.ui.CheckCifLogPlainTextEdit,
output_widget=self.ui.CheckcifPlaintextEdit,
cif_file=self.cif.fileobj)
if not Path(runner.platon_exe).resolve().exists():
self.ui.CheckCifLogPlainTextEdit.setPlainText('Platon executable not found!')
self.ui.CheckCifLogPlainTextEdit.setPlainText('You can download Platon at http://www.platonsoft.nl/platon/')
runner.tick.connect(self.append_to_ciflog_without_newline)
runner.run_process()
runner.finished.connect(lambda: self.ui.CheckcifButton.setEnabled(True))
Expand Down
1 change: 1 addition & 0 deletions finalcif/tools/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import threading
import time
from contextlib import suppress
from pathlib import Path

from PyQt5 import QtCore
Expand Down

0 comments on commit f155fba

Please sign in to comment.