Skip to content

Commit cf432bc

Browse files
committed
BF: Use correct import of visual.window when shutting down iohub
The previous code would throw an exception on Py3.
1 parent 26dc8c9 commit cf432bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psychopy/iohub/client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,8 +1238,8 @@ def _getDeviceList(self):
12381238
def _shutDownServer(self):
12391239
if self._shutdown_attempted is False:
12401240
try:
1241-
import psychopy
1242-
psychopy.visual.window.IOHUB_ACTIVE = False
1241+
from psychopy.visual import window
1242+
window.IOHUB_ACTIVE = False
12431243
except ImportError:
12441244
pass
12451245

0 commit comments

Comments
 (0)