Skip to content
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 authored and peircej committed Jan 30, 2019
1 parent 1422fd7 commit 7a7751ca5d55ab8857ab0775f9c6278fa5f7213f
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 7a7751c

Please sign in to comment.
You can’t perform that action at this time.