diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-28 20:47:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 20:47:05 -0500 |
commit | d5cebaef06719fdc01eba15e01fb70ef948e05c9 (patch) | |
tree | 7cd0010127ae50250e0843cab31540ec05e5806d /cmd2/rl_utils.py | |
parent | 44eb9d4e1946a3cc9a10fe85ccb617b6076f627c (diff) | |
parent | a96c0f53b2a62a94582624c76c7d990012891204 (diff) | |
download | cmd2-git-d5cebaef06719fdc01eba15e01fb70ef948e05c9.tar.gz |
Merge pull request #1046 from KyleKing/patch-1
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 |