Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adds pre-commit config to run various lintersci_improvements | xNinjaKittyx | 2020-12-15 | 1 | -1/+1 |
| | | | | | | | This ads black, isort, pyupgrade, and flake8 to pre-commit-config.yaml There are also some small changes to travis.yml and tasks.py to reduce some repeated configurations that should be consolidated into setup.cfg. Most other changes are automated by the linter scripts. | ||||
* | Fixed bug where pyscripts could edit cmd2.Cmd.py_locals dictionary. | Kevin Van Brunt | 2020-02-14 | 1 | -0/+1 |
| | | | | | | | | | Fixed bug where cmd2 set sys.path[0] for a pyscript to its cwd instead of the script's directory. Fixed bug where sys.path was not being restored after a pyscript ran. Setting the following pyscript variables: __name__: __main__ __file__: script path (as typed) Removed do_py.run() function since it didn't handle arguments and offered no benefit over run_pyscript. | ||||
* | Fixed issue where run_pyscript failed if the script's filename had a space | Kevin Van Brunt | 2019-07-23 | 1 | -0/+11 |