diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-05-18 10:48:01 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-05-18 10:48:01 -0400 |
commit | ec91ec1340c9759add11e7bf2b9b5cd913dc1ee3 (patch) | |
tree | 4f2cab708b1ade9db3dfb8cd606d2b384e67f629 /cmd2.py | |
parent | 398cec2fd27c7e09d1b01dc383c5aefeb28511c3 (diff) | |
download | cmd2-git-ec91ec1340c9759add11e7bf2b9b5cd913dc1ee3.tar.gz |
Fixed a hard-coded path separator
Fixed a bug where a path separator was hard-coded as ":" and replaced it with os.path.pathsep
Also changed version from 0.7.1a to 0.7.1 in preparation for upcoming release.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 = [] |