Skip to content

Commit

Permalink
Re #7950. Set PyQt API version for stand-alone running.
Browse files Browse the repository at this point in the history
If running in Mantid, this setting is done within the C++ code. I'm adding
it here to make sure things work if running outside of MantidPlot (which
doesn't work at the moment, but could cause confusion later if that's fixed).
Note that this has to be done before the first import of PyQt.
  • Loading branch information
RussellTaylor committed Sep 30, 2013
1 parent 3bb0f09 commit 6bf3688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Code/Mantid/scripts/Interface/reduction_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""
import sys, os
import traceback
from PyQt4 import QtGui, QtCore, uic
import math

# Check whether Mantid is available
Expand All @@ -15,8 +14,13 @@
from mantid.api import AlgorithmFactory
CLUSTER_ENABLED = "SubmitRemoteJob" in AlgorithmFactory.getRegisteredAlgorithms(True)
except:
import sip
sip.setapi('QString',2)
sip.setapi('QVariant',2)
pass

from PyQt4 import QtGui, QtCore, uic

REDUCTION_WARNING = False
WARNING_MESSAGE = ""

Expand Down

0 comments on commit 6bf3688

Please sign in to comment.