Skip to content

Commit

Permalink
Raise a warning dialogue if pyside6 is found. Temporary half-baked "s…
Browse files Browse the repository at this point in the history
…olution" for #1768.
  • Loading branch information
willend committed Nov 28, 2024
1 parent 7736cfb commit 63fe17e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/Python/mcplot/pyqtgraph/mcplot.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ canrun() {
cmd="${cmd}import ${name}; "
done
python3 -c "${cmd}"

python3 -c "import PySide6"
if [ $? == 0 ]; then
mcstas_errmsg Your Python has PySide6 - ${TOOL} will not function correctly. Please run in an environment with PyQt5 only.
exit 127;
fi
}

if ( canrun ); then
Expand Down

0 comments on commit 63fe17e

Please sign in to comment.