Permalink
Browse files

BF: Use correct import of visual.window when shutting down iohub

The previous code would throw an exception on Py3.
  • Loading branch information...
hoechenberger committed Jan 30, 2019
1 parent 26dc8c9 commit cf432bc3ccdb0c665219964acdd9748660158af8
Showing with 2 additions and 2 deletions.
  1. +2 −2 psychopy/iohub/client/__init__.py
@@ -1238,8 +1238,8 @@ def _getDeviceList(self):
def _shutDownServer(self):
if self._shutdown_attempted is False:
try:
import psychopy
psychopy.visual.window.IOHUB_ACTIVE = False
from psychopy.visual import window
window.IOHUB_ACTIVE = False
except ImportError:
pass

0 comments on commit cf432bc

Please sign in to comment.