Skip to content

Commit

Permalink
Add Windows compatibility.
Browse files Browse the repository at this point in the history
This resolves issue dhylands#17.
  • Loading branch information
ccooper21 committed Dec 4, 2017
1 parent a7805d6 commit c5334e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

import readline
import rlcompleter
if 'libedit' in readline.__doc__:
if readline.__doc__ and 'libedit' in readline.__doc__:
readline.parse_and_bind ("bind ^I rl_complete")
BROKEN_READLINE = True
else:
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
install_requires=[
'pyserial',
'pyudev >= 0.16',
],
] + ([
'pyreadline',
] if 'win' in sys.platform else []),
entry_points = {
'console_scripts': [
'pyboard=rshell.pyboard:main',
Expand Down

0 comments on commit c5334e9

Please sign in to comment.