Skip to content

Commit 63fe17e

Browse files
committed
Raise a warning dialogue if pyside6 is found. Temporary half-baked "solution" for #1768.
1 parent 7736cfb commit 63fe17e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/Python/mcplot/pyqtgraph/mcplot.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ canrun() {
2424
cmd="${cmd}import ${name}; "
2525
done
2626
python3 -c "${cmd}"
27+
28+
python3 -c "import PySide6"
29+
if [ $? == 0 ]; then
30+
mcstas_errmsg Your Python has PySide6 - ${TOOL} will not function correctly. Please run in an environment with PyQt5 only.
31+
exit 127;
32+
fi
2733
}
2834

2935
if ( canrun ); then

0 commit comments

Comments
 (0)