Skip to content

Commit 4fc0164

Browse files
authored
Merge pull request #255 from NYUCCL/173-import-gnureadline-if-available
import gnureadline if available
2 parents 3273512 + 427ead5 commit 4fc0164

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

psiturk/psiturk_shell.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818

1919
from cmd2 import Cmd
2020
from docopt import docopt, DocoptExit
21-
import readline
21+
22+
try:
23+
import gnureadline as readline
24+
except ImportError:
25+
import readline
2226

2327
import webbrowser
2428
import sqlalchemy as sa

0 commit comments

Comments
 (0)