summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-05-18 11:07:13 -0400
committerGitHub <noreply@github.com>2017-05-18 11:07:13 -0400
commit8297145a74ee4d239cfb7d68a47f59342fd831fe (patch)
tree4f2cab708b1ade9db3dfb8cd606d2b384e67f629
parent398cec2fd27c7e09d1b01dc383c5aefeb28511c3 (diff)
parentec91ec1340c9759add11e7bf2b9b5cd913dc1ee3 (diff)
downloadcmd2-git-8297145a74ee4d239cfb7d68a47f59342fd831fe.tar.gz
Merge pull request #101 from python-cmd2/windows_path
Fixed a hard-coded path separator
-rwxr-xr-xcmd2.py4
-rwxr-xr-xsetup.py2
-rw-r--r--tests/test_cmd2.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd2.py b/cmd2.py
index 1f65f5a1..1de93ec2 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -87,7 +87,7 @@ try:
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()
@@ -1461,7 +1461,7 @@ class Cmd(cmd.Cmd):
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 = []
diff --git a/setup.py b/setup.py
index 58505a0a..d09c5fd3 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ Setuptools setup file, used to install or test 'cmd2'
"""
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
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 10ae4329..3b0f752e 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -22,7 +22,7 @@ from conftest import run_cmd, normalize, BASE_HELP, HELP_HISTORY, SHORTCUTS_TXT,
def test_ver():
- assert cmd2.__version__ == '0.7.1a'
+ assert cmd2.__version__ == '0.7.1'
def test_base_help(base_app):