Skip to content

Commit 8297145

Browse files
authored
Merge pull request #101 from python-cmd2/windows_path
Fixed a hard-coded path separator
2 parents 398cec2 + ec91ec1 commit 8297145

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
except ImportError:
8888
pass
8989

90-
__version__ = '0.7.1a'
90+
__version__ = '0.7.1'
9191

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

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

14661466
# Find every executable file in the PATH that matches the pattern
14671467
exes = []

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66
from setuptools import setup
77

8-
VERSION = '0.7.1a'
8+
VERSION = '0.7.1'
99
DESCRIPTION = "Extra features for standard library's cmd module"
1010

1111
LONG_DESCRIPTION = """cmd2 is an enhancement to the standard library's cmd module for Python 2.7

tests/test_cmd2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
def test_ver():
25-
assert cmd2.__version__ == '0.7.1a'
25+
assert cmd2.__version__ == '0.7.1'
2626

2727

2828
def test_base_help(base_app):

0 commit comments

Comments
 (0)