diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-17 11:39:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 11:39:50 -0500 |
commit | 729e152c525bc30d36f130f8dc8442aeb00d1de8 (patch) | |
tree | 25f9041650716c5be91926da39af0b0ebaca853f /CHANGELOG.md | |
parent | 013b9e0a2c75e17f8aa0e0f7cbe50d84d2f657d8 (diff) | |
parent | 555db5d98fc122dc21d3bb239c079d68272cc0c3 (diff) | |
download | cmd2-git-729e152c525bc30d36f130f8dc8442aeb00d1de8.tar.gz |
Merge pull request #888 from python-cmd2/pyscript_fixes
pyscript fixes
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d71831..4d662cf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,17 @@ * Corrected issue where the actual new value was not always being printed in do_set. This occurred in cases where the typed value differed from what the setter had converted it to. * Fixed bug where ANSI style sequences were not correctly handled in `utils.truncate_line()`. + * Fixed bug where pyscripts could edit `cmd2.Cmd.py_locals` dictionary. + * Fixed bug where cmd2 set sys.path[0] for a pyscript to cmd2's working directory instead of the + script file's directory. + * Fixed bug where sys.path was not being restored after a pyscript ran. * Enhancements * Renamed set command's `-l/--long` flag to `-v/--verbose` for consistency with help and history commands. + * Setting the following pyscript variables: + * `__name__`: __main__ + * `__file__`: script path (as typed, ~ will be expanded) +* Other + * Removed undocumented `py run` command since it was replaced by `run_pyscript` a while ago ## 0.10.0 (February 7, 2020) * Enhancements |