diff options
author | Kyle King <KyleKing@users.noreply.github.com> | 2021-01-27 19:16:43 -0500 |
---|---|---|
committer | Kyle King <KyleKing@users.noreply.github.com> | 2021-01-27 19:16:43 -0500 |
commit | a96c0f53b2a62a94582624c76c7d990012891204 (patch) | |
tree | 7cd0010127ae50250e0843cab31540ec05e5806d /cmd2/rl_utils.py | |
parent | 44eb9d4e1946a3cc9a10fe85ccb617b6076f627c (diff) | |
download | cmd2-git-a96c0f53b2a62a94582624c76c7d990012891204.tar.gz |
Update conditional pyreadline3 dependency for Win
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r-- | cmd2/rl_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py index e435c3f5..ca75fd8a 100644 --- a/cmd2/rl_utils.py +++ b/cmd2/rl_utils.py @@ -37,8 +37,8 @@ vt100_support = False # Explanation for why readline wasn't loaded _rl_warn_reason = '' -# The order of this check matters since importing pyreadline will also show readline in the modules list -if 'pyreadline' in sys.modules: +# The order of this check matters since importing pyreadline/pyreadline3 will also show readline in the modules list +if 'pyreadline' in sys.modules or 'pyreadline3' in sys.modules: rl_type = RlType.PYREADLINE from ctypes import byref |