Skip to content

Commit 8e64b01

Browse files
committed
clear QT_API before calling pyFAI script
Former-commit-id: 35e0a4fd7bc5caf9555bf61f45705d8cac4c4629
1 parent 37ef93d commit 8e64b01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpx/srxplanargui/calibration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
from dpx.confutils.tools import module_exists_lower
5050
if module_exists_lower('pyfai'):
51+
import pyFAI
5152
missingpyFAI = False
5253
else:
5354
missingpyFAI = True
@@ -153,6 +154,10 @@ def callPyFAICalibration(self, image=None, dspacefile=None):
153154
calicmd.extend([str(image)])
154155

155156
import subprocess
157+
try:
158+
os.environ.pop('QT_API')
159+
except:
160+
pass
156161
subprocess.call(calicmd)
157162

158163
# integrate image

0 commit comments

Comments
 (0)