Skip to content

Commit

Permalink
BF: Use correct import of visual.window when shutting down iohub
Browse files Browse the repository at this point in the history
The previous code would throw an exception on Py3.
  • Loading branch information
hoechenberger authored and peircej committed Jan 31, 2019
1 parent 1422fd7 commit 7a7751c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psychopy/iohub/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a7751c

Please sign in to comment.