Skip to content

Commit

Permalink
Merge pull request #101 from python-cmd2/windows_path
Browse files Browse the repository at this point in the history
Fixed a hard-coded path separator
  • Loading branch information
tleonhardt committed May 18, 2017
2 parents 398cec2 + ec91ec1 commit 8297145
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
except ImportError:
pass

__version__ = '0.7.1a'
__version__ = '0.7.1'

# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
pyparsing.ParserElement.enablePackrat()
Expand Down Expand Up @@ -1461,7 +1461,7 @@ def _shell_command_complete(search_text):
return []

# Get a list of every directory in the PATH environment variable and ignore symbolic links
paths = [p for p in os.getenv('PATH').split(':') if not os.path.islink(p)]
paths = [p for p in os.getenv('PATH').split(os.path.pathsep) if not os.path.islink(p)]

# Find every executable file in the PATH that matches the pattern
exes = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""
from setuptools import setup

VERSION = '0.7.1a'
VERSION = '0.7.1'
DESCRIPTION = "Extra features for standard library's cmd module"

LONG_DESCRIPTION = """cmd2 is an enhancement to the standard library's cmd module for Python 2.7
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


def test_ver():
assert cmd2.__version__ == '0.7.1a'
assert cmd2.__version__ == '0.7.1'


def test_base_help(base_app):
Expand Down

0 comments on commit 8297145

Please sign in to comment.