Skip to content

Commit 6975040

Browse files
committed
FF: trying to import readline needs adding to createInitFile
1 parent 1763055 commit 6975040

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

createInitFile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ def createInitFile(dist=None, version=None, sha=None):
108108
109109
from psychopy.tools.versionchooser import useVersion, ensureMinimal
110110
111+
# import readline here to get around an issue with sounddevice
112+
# issues GH-2230 GH-2344 GH-2662
113+
try:
114+
import readline
115+
except ImportError:
116+
pass # all that will happen is the stderr/stdout might get redirected
117+
111118
"""
112119

113120

psychopy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@
5353
import readline
5454
except ImportError:
5555
pass # all that will happen is the stderr/stdout might get redirected
56+

0 commit comments

Comments
 (0)